pythonPackages.sqlalchemy: follows upstream, sqlalchemy7 for lecagy

This makes pythonPackages.sqlalchemy the most up to date revision (it
was called sqlalchemy_1_0 before), and maintains the various “legacy”
versions available as pythonPackages.sqlalchemyX for X in {7,8,9}.

All derivations that required `sqlalchemy_1_0` now require `sqlalchemy`
while those that required `sqlalchemy` now require `sqlalchemy7`.

The derivations are not changed, only the attribute names they are
bound to.

+72 -25
+1 -1
pkgs/applications/virtualization/openstack/glance.nix
··· 15 15 16 16 # https://github.com/openstack/glance/blob/stable/liberty/requirements.txt 17 17 propagatedBuildInputs = with pythonPackages; [ 18 - pbr sqlalchemy_1_0 anyjson eventlet PasteDeploy routes webob sqlalchemy_migrate 18 + pbr sqlalchemy anyjson eventlet PasteDeploy routes webob sqlalchemy_migrate 19 19 httplib2 pycrypto iso8601 stevedore futurist keystonemiddleware paste 20 20 jsonschema keystoneclient pyopenssl six retrying semantic-version qpid-python 21 21 WSME osprofiler glance_store castellan taskflow cryptography xattr pysendfile
+1 -1
pkgs/applications/virtualization/openstack/keystone.nix
··· 18 18 # https://github.com/openstack/keystone/blob/stable/liberty/requirements.txt 19 19 propagatedBuildInputs = with pythonPackages; [ 20 20 pbr webob eventlet greenlet PasteDeploy paste routes cryptography six 21 - sqlalchemy_1_0 sqlalchemy_migrate stevedore passlib keystoneclient memcached 21 + sqlalchemy sqlalchemy_migrate stevedore passlib keystoneclient memcached 22 22 keystonemiddleware oauthlib pysaml2 dogpile_cache jsonschema pycadf msgpack 23 23 xmlsec MySQL_python 24 24
+1 -1
pkgs/applications/virtualization/openstack/neutron.nix
··· 15 15 # https://github.com/openstack/neutron/blob/stable/liberty/requirements.txt 16 16 propagatedBuildInputs = with pythonPackages; [ 17 17 pbr paste PasteDeploy routes debtcollector eventlet greenlet httplib2 requests2 18 - jinja2 keystonemiddleware netaddr retrying sqlalchemy_1_0 webob alembic six 18 + jinja2 keystonemiddleware netaddr retrying sqlalchemy webob alembic six 19 19 stevedore pecan ryu networking-hyperv MySQL_python 20 20 21 21 # clients
+1 -1
pkgs/applications/virtualization/openstack/nova.nix
··· 19 19 20 20 # https://github.com/openstack/nova/blob/stable/liberty/requirements.txt 21 21 propagatedBuildInputs = with pythonPackages; [ 22 - pbr sqlalchemy_1_0 boto decorator eventlet jinja2 lxml routes cryptography 22 + pbr sqlalchemy boto decorator eventlet jinja2 lxml routes cryptography 23 23 webob greenlet PasteDeploy paste prettytable sqlalchemy_migrate netaddr 24 24 netifaces paramiko Babel iso8601 jsonschema keystoneclient requests2 six 25 25 stevedore websockify rfc3986 os-brick psutil_1 alembic psycopg2 pymysql
+1 -1
pkgs/applications/virtualization/virtinst/default.nix
··· 13 13 }; 14 14 15 15 pythonPath = with pythonPackages; 16 - [ setuptools eventlet greenlet gflags netaddr sqlalchemy carrot routes 16 + [ setuptools eventlet greenlet gflags netaddr sqlalchemy7 carrot routes 17 17 PasteDeploy m2crypto ipy twisted sqlalchemy_migrate 18 18 distutils_extra simplejson readline glanceclient cheetah lockfile httplib2 19 19 # !!! should libvirt be a build-time dependency? Note that
+1 -1
pkgs/development/tools/build-managers/buildbot/default.nix
··· 1 1 { stdenv, buildPythonApplication, fetchurl, twisted, dateutil, jinja2 2 - , sqlalchemy , sqlalchemy_migrate_0_7 2 + , sqlalchemy_migrate_0_7 3 3 , enableDebugClient ? false, pygobject ? null, pyGtkGlade ? null 4 4 }: 5 5
+1 -1
pkgs/top-level/all-packages.nix
··· 5724 5724 }; 5725 5725 5726 5726 buildbot = callPackage ../development/tools/build-managers/buildbot { 5727 - inherit (pythonPackages) twisted jinja2 sqlalchemy sqlalchemy_migrate_0_7; 5727 + inherit (pythonPackages) twisted jinja2 sqlalchemy_migrate_0_7; 5728 5728 dateutil = pythonPackages.dateutil_1_5; 5729 5729 }; 5730 5730
+65 -18
pkgs/top-level/python-packages.nix
··· 235 235 sha256 = "1ywimbisgb5g7xl9nrfwcm7dv3j8fsrjfp7bxb3l58zbsrzj6z2s"; 236 236 }; 237 237 238 - propagatedBuildInputs = with self; [ appdirs colorama dateutil requests2 requests_toolbelt sqlalchemy ]; 238 + propagatedBuildInputs = with self; [ appdirs colorama dateutil requests2 requests_toolbelt sqlalchemy7 ]; 239 239 240 240 makeWrapperArgs = [ "--prefix LIBFUSE_PATH : ${pkgs.fuse}/lib/libfuse.so" ]; 241 241 ··· 457 457 }; 458 458 459 459 buildInputs = with self; [ pytest pytestcov mock coverage ]; 460 - propagatedBuildInputs = with self; [ Mako sqlalchemy_1_0 python-editor ]; 460 + propagatedBuildInputs = with self; [ Mako sqlalchemy python-editor ]; 461 461 462 462 meta = { 463 463 homepage = http://bitbucket.org/zzzeek/alembic; ··· 1575 1575 }; 1576 1576 1577 1577 buildInputs = 1578 - [ self.sqlalchemy 1578 + [ self.sqlalchemy7 1579 1579 self.pycryptopp 1580 1580 self.nose 1581 1581 self.mock ··· 2101 2101 pymongo 2102 2102 pyyaml 2103 2103 requests2 2104 - sqlalchemy_1_0 2104 + sqlalchemy 2105 2105 tables 2106 2106 toolz 2107 2107 ]; ··· 3188 3188 sed -i '/distribute/d' setup.py 3189 3189 ''; 3190 3190 3191 - buildInputs = with self; [ self.coverage self.sqlalchemy ]; 3191 + buildInputs = with self; [ self.coverage self.sqlalchemy7 ]; 3192 3192 3193 3193 # ValueError: Could not parse auth file: 3194 3194 # /tmp/nix-build-.../CoilMQ-0.6.1/coilmq/tests/resources/auth.ini ··· 7087 7087 propagatedBuildInputs = with self; [ 7088 7088 flup 7089 7089 ldap 7090 - sqlalchemy 7090 + sqlalchemy7 7091 7091 ]; 7092 7092 7093 7093 doCheck = true; ··· 8894 8894 sha256 = "1i9ps5d5snih9xlqhrvmi3qfiygkmqzxh92n25kj4pf89kj4s965"; 8895 8895 }; 8896 8896 8897 - propagatedBuildInputs = with self ; [ flask sqlalchemy_1_0 ]; 8897 + propagatedBuildInputs = with self ; [ flask sqlalchemy ]; 8898 8898 8899 8899 meta = { 8900 8900 description = "SQLAlchemy extension for Flask"; ··· 13699 13699 }; 13700 13700 13701 13701 propagatedBuildInputs = with self; [ 13702 - six stevedore sqlalchemy_migrate sqlalchemy_1_0 oslo-utils oslo-context 13702 + six stevedore sqlalchemy_migrate sqlalchemy oslo-utils oslo-context 13703 13703 oslo-config oslo-i18n iso8601 Babel alembic pbr psycopg2 13704 13704 ]; 13705 13705 buildInputs = with self; [ ··· 13844 13844 singledispatch logutils 13845 13845 ]; 13846 13846 buildInputs = with self; [ 13847 - webtest Mako genshi Kajiki sqlalchemy_1_0 gunicorn jinja2 virtualenv 13847 + webtest Mako genshi Kajiki sqlalchemy gunicorn jinja2 virtualenv 13848 13848 ]; 13849 13849 13850 13850 meta = with stdenv.lib; { ··· 14567 14567 pytz 14568 14568 xlrd 14569 14569 bottleneck 14570 - sqlalchemy_1_0 14570 + sqlalchemy 14571 14571 lxml 14572 14572 # Disabling this because an upstream dependency, pep8, is broken on v3.5. 14573 14573 (if isPy35 then null else html5lib) ··· 20132 20132 rope = if isPy3k then null else self.rope; 20133 20133 }; 20134 20134 20135 - sqlalchemy = self.sqlalchemy9.override rec { 20135 + sqlalchemy7 = buildPythonPackage rec { 20136 20136 name = "SQLAlchemy-0.7.10"; 20137 20137 disabled = isPy34 || isPy35; 20138 20138 doCheck = !isPyPy; ··· 20141 20141 url = "http://pypi.python.org/packages/source/S/SQLAlchemy/${name}.tar.gz"; 20142 20142 sha256 = "0rhxgr85xdhjn467qfs0dkyj8x46zxcv6ad3dfx3w14xbkb3kakp"; 20143 20143 }; 20144 + 20144 20145 patches = [ 20145 20146 # see https://groups.google.com/forum/#!searchin/sqlalchemy/module$20logging$20handlers/sqlalchemy/ukuGhmQ2p6g/2_dOpBEYdDYJ 20146 20147 # waiting for 0.7.11 release 20147 20148 ../development/python-modules/sqlalchemy-0.7.10-test-failures.patch 20148 20149 ]; 20150 + 20149 20151 preConfigure = optionalString isPy3k '' 20150 20152 python3 sa2to3.py --no-diffs -w lib test examples 20151 20153 ''; 20154 + 20155 + buildInputs = with self; [ nose mock ] 20156 + ++ stdenv.lib.optional doCheck pysqlite; 20157 + propagatedBuildInputs = with self; [ modules.sqlite3 ]; 20158 + 20159 + checkPhase = '' 20160 + ${python.executable} sqla_nose.py 20161 + ''; 20162 + 20163 + meta = { 20164 + homepage = http://www.sqlalchemy.org/; 20165 + description = "A Python SQL toolkit and Object Relational Mapper"; 20166 + }; 20152 20167 }; 20153 20168 20154 - sqlalchemy8 = self.sqlalchemy9.override rec { 20169 + sqlalchemy8 = buildPythonPackage rec { 20155 20170 name = "SQLAlchemy-0.8.7"; 20156 20171 disabled = isPy34 || isPy35; 20157 20172 doCheck = !isPyPy; ··· 20160 20175 url = "https://pypi.python.org/packages/source/S/SQLAlchemy/${name}.tar.gz"; 20161 20176 md5 = "4f3377306309e46739696721b1785335"; 20162 20177 }; 20178 + 20163 20179 preConfigure = optionalString isPy3k '' 20164 20180 python3 sa2to3.py --no-diffs -w lib test examples 20165 20181 ''; 20182 + 20183 + buildInputs = with self; [ nose mock ] 20184 + ++ stdenv.lib.optional doCheck pysqlite; 20185 + propagatedBuildInputs = with self; [ modules.sqlite3 ]; 20186 + 20187 + checkPhase = '' 20188 + ${python.executable} sqla_nose.py 20189 + ''; 20190 + 20191 + meta = { 20192 + homepage = http://www.sqlalchemy.org/; 20193 + description = "A Python SQL toolkit and Object Relational Mapper"; 20194 + }; 20166 20195 }; 20167 20196 20168 20197 sqlalchemy9 = buildPythonPackage rec { ··· 20191 20220 }; 20192 20221 }; 20193 20222 20194 - sqlalchemy_1_0 = self.sqlalchemy9.override rec { 20195 - name = "SQLAlchemy-1.0.10"; 20196 - doCheck = !isPyPy; # lots of tests fail 20223 + sqlalchemy = buildPythonPackage rec { 20224 + name = "SQLAlchemy-${version}"; 20225 + version = "1.0.10"; 20197 20226 20198 20227 src = pkgs.fetchurl { 20199 20228 url = "https://pypi.python.org/packages/source/S/SQLAlchemy/${name}.tar.gz"; 20200 20229 sha256 = "963415bf4ea4fa13698893464bc6917d291331e0e8202dddd0ebfed2864ef7e3"; 20201 20230 }; 20231 + 20232 + buildInputs = with self; [ nose mock ] 20233 + ++ stdenv.lib.optional doCheck pysqlite; 20234 + propagatedBuildInputs = with self; [ modules.sqlite3 ]; 20235 + 20236 + # Test-only dependency pysqlite doesn't build on Python 3. This isn't an 20237 + # acceptable reason to make all dependents unavailable on Python 3 as well 20238 + doCheck = !(isPyPy || isPy3k); 20239 + 20240 + checkPhase = '' 20241 + ${python.executable} sqla_nose.py 20242 + ''; 20243 + 20244 + meta = { 20245 + homepage = http://www.sqlalchemy.org/; 20246 + description = "A Python SQL toolkit and Object Relational Mapper"; 20247 + license = licenses.mit; 20248 + }; 20202 20249 }; 20203 20250 20204 20251 sqlalchemy_imageattach = buildPythonPackage rec { ··· 20261 20308 }; 20262 20309 }; 20263 20310 20264 - sqlalchemy_migrate = self.sqlalchemy_migrate_func self.sqlalchemy_1_0; 20265 - sqlalchemy_migrate_0_7 = self.sqlalchemy_migrate_func self.sqlalchemy; 20311 + sqlalchemy_migrate = self.sqlalchemy_migrate_func self.sqlalchemy; 20312 + sqlalchemy_migrate_0_7 = self.sqlalchemy_migrate_func self.sqlalchemy7; 20266 20313 20267 20314 sqlparse = buildPythonPackage rec { 20268 20315 name = "sqlparse-${version}"; ··· 24810 24857 thrift 24811 24858 beautifulsoup4 24812 24859 markdown2 24813 - sqlalchemy 24860 + sqlalchemy7 24814 24861 html2text 24815 24862 evernote 24816 24863 ];