Merge pull request #13448 from lancelotsix/use_recent_sqlalchemy_as_default

pythonPackages.sqlalchemy: follows upstream, use "sqlalchemy7" for lecagy

+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
··· 5765 5765 }; 5766 5766 5767 5767 buildbot = callPackage ../development/tools/build-managers/buildbot { 5768 - inherit (pythonPackages) twisted jinja2 sqlalchemy sqlalchemy_migrate_0_7; 5768 + inherit (pythonPackages) twisted jinja2 sqlalchemy_migrate_0_7; 5769 5769 dateutil = pythonPackages.dateutil_1_5; 5770 5770 }; 5771 5771
+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 ··· 480 480 }; 481 481 482 482 buildInputs = with self; [ pytest pytestcov mock coverage ]; 483 - propagatedBuildInputs = with self; [ Mako sqlalchemy_1_0 python-editor ]; 483 + propagatedBuildInputs = with self; [ Mako sqlalchemy python-editor ]; 484 484 485 485 meta = { 486 486 homepage = http://bitbucket.org/zzzeek/alembic; ··· 1628 1628 }; 1629 1629 1630 1630 buildInputs = 1631 - [ self.sqlalchemy 1631 + [ self.sqlalchemy7 1632 1632 self.pycryptopp 1633 1633 self.nose 1634 1634 self.mock ··· 2154 2154 pymongo 2155 2155 pyyaml 2156 2156 requests2 2157 - sqlalchemy_1_0 2157 + sqlalchemy 2158 2158 tables 2159 2159 toolz 2160 2160 ]; ··· 3241 3241 sed -i '/distribute/d' setup.py 3242 3242 ''; 3243 3243 3244 - buildInputs = with self; [ self.coverage self.sqlalchemy ]; 3244 + buildInputs = with self; [ self.coverage self.sqlalchemy7 ]; 3245 3245 3246 3246 # ValueError: Could not parse auth file: 3247 3247 # /tmp/nix-build-.../CoilMQ-0.6.1/coilmq/tests/resources/auth.ini ··· 7101 7101 propagatedBuildInputs = with self; [ 7102 7102 flup 7103 7103 ldap 7104 - sqlalchemy 7104 + sqlalchemy7 7105 7105 ]; 7106 7106 7107 7107 doCheck = true; ··· 8908 8908 sha256 = "1i9ps5d5snih9xlqhrvmi3qfiygkmqzxh92n25kj4pf89kj4s965"; 8909 8909 }; 8910 8910 8911 - propagatedBuildInputs = with self ; [ flask sqlalchemy_1_0 ]; 8911 + propagatedBuildInputs = with self ; [ flask sqlalchemy ]; 8912 8912 8913 8913 meta = { 8914 8914 description = "SQLAlchemy extension for Flask"; ··· 13720 13720 }; 13721 13721 13722 13722 propagatedBuildInputs = with self; [ 13723 - six stevedore sqlalchemy_migrate sqlalchemy_1_0 oslo-utils oslo-context 13723 + six stevedore sqlalchemy_migrate sqlalchemy oslo-utils oslo-context 13724 13724 oslo-config oslo-i18n iso8601 Babel alembic pbr psycopg2 13725 13725 ]; 13726 13726 buildInputs = with self; [ ··· 13865 13865 singledispatch logutils 13866 13866 ]; 13867 13867 buildInputs = with self; [ 13868 - webtest Mako genshi Kajiki sqlalchemy_1_0 gunicorn jinja2 virtualenv 13868 + webtest Mako genshi Kajiki sqlalchemy gunicorn jinja2 virtualenv 13869 13869 ]; 13870 13870 13871 13871 meta = with stdenv.lib; { ··· 14588 14588 pytz 14589 14589 xlrd 14590 14590 bottleneck 14591 - sqlalchemy_1_0 14591 + sqlalchemy 14592 14592 lxml 14593 14593 # Disabling this because an upstream dependency, pep8, is broken on v3.5. 14594 14594 (if isPy35 then null else html5lib) ··· 20165 20165 rope = if isPy3k then null else self.rope; 20166 20166 }; 20167 20167 20168 - sqlalchemy = self.sqlalchemy9.override rec { 20168 + sqlalchemy7 = buildPythonPackage rec { 20169 20169 name = "SQLAlchemy-0.7.10"; 20170 20170 disabled = isPy34 || isPy35; 20171 20171 doCheck = !isPyPy; ··· 20174 20174 url = "http://pypi.python.org/packages/source/S/SQLAlchemy/${name}.tar.gz"; 20175 20175 sha256 = "0rhxgr85xdhjn467qfs0dkyj8x46zxcv6ad3dfx3w14xbkb3kakp"; 20176 20176 }; 20177 + 20177 20178 patches = [ 20178 20179 # see https://groups.google.com/forum/#!searchin/sqlalchemy/module$20logging$20handlers/sqlalchemy/ukuGhmQ2p6g/2_dOpBEYdDYJ 20179 20180 # waiting for 0.7.11 release 20180 20181 ../development/python-modules/sqlalchemy-0.7.10-test-failures.patch 20181 20182 ]; 20183 + 20182 20184 preConfigure = optionalString isPy3k '' 20183 20185 python3 sa2to3.py --no-diffs -w lib test examples 20184 20186 ''; 20187 + 20188 + buildInputs = with self; [ nose mock ] 20189 + ++ stdenv.lib.optional doCheck pysqlite; 20190 + propagatedBuildInputs = with self; [ modules.sqlite3 ]; 20191 + 20192 + checkPhase = '' 20193 + ${python.executable} sqla_nose.py 20194 + ''; 20195 + 20196 + meta = { 20197 + homepage = http://www.sqlalchemy.org/; 20198 + description = "A Python SQL toolkit and Object Relational Mapper"; 20199 + }; 20185 20200 }; 20186 20201 20187 - sqlalchemy8 = self.sqlalchemy9.override rec { 20202 + sqlalchemy8 = buildPythonPackage rec { 20188 20203 name = "SQLAlchemy-0.8.7"; 20189 20204 disabled = isPy34 || isPy35; 20190 20205 doCheck = !isPyPy; ··· 20193 20208 url = "https://pypi.python.org/packages/source/S/SQLAlchemy/${name}.tar.gz"; 20194 20209 md5 = "4f3377306309e46739696721b1785335"; 20195 20210 }; 20211 + 20196 20212 preConfigure = optionalString isPy3k '' 20197 20213 python3 sa2to3.py --no-diffs -w lib test examples 20198 20214 ''; 20215 + 20216 + buildInputs = with self; [ nose mock ] 20217 + ++ stdenv.lib.optional doCheck pysqlite; 20218 + propagatedBuildInputs = with self; [ modules.sqlite3 ]; 20219 + 20220 + checkPhase = '' 20221 + ${python.executable} sqla_nose.py 20222 + ''; 20223 + 20224 + meta = { 20225 + homepage = http://www.sqlalchemy.org/; 20226 + description = "A Python SQL toolkit and Object Relational Mapper"; 20227 + }; 20199 20228 }; 20200 20229 20201 20230 sqlalchemy9 = buildPythonPackage rec { ··· 20224 20253 }; 20225 20254 }; 20226 20255 20227 - sqlalchemy_1_0 = self.sqlalchemy9.override rec { 20228 - name = "SQLAlchemy-1.0.10"; 20229 - doCheck = !isPyPy; # lots of tests fail 20256 + sqlalchemy = buildPythonPackage rec { 20257 + name = "SQLAlchemy-${version}"; 20258 + version = "1.0.10"; 20230 20259 20231 20260 src = pkgs.fetchurl { 20232 20261 url = "https://pypi.python.org/packages/source/S/SQLAlchemy/${name}.tar.gz"; 20233 20262 sha256 = "963415bf4ea4fa13698893464bc6917d291331e0e8202dddd0ebfed2864ef7e3"; 20234 20263 }; 20264 + 20265 + buildInputs = with self; [ nose mock ] 20266 + ++ stdenv.lib.optional doCheck pysqlite; 20267 + propagatedBuildInputs = with self; [ modules.sqlite3 ]; 20268 + 20269 + # Test-only dependency pysqlite doesn't build on Python 3. This isn't an 20270 + # acceptable reason to make all dependents unavailable on Python 3 as well 20271 + doCheck = !(isPyPy || isPy3k); 20272 + 20273 + checkPhase = '' 20274 + ${python.executable} sqla_nose.py 20275 + ''; 20276 + 20277 + meta = { 20278 + homepage = http://www.sqlalchemy.org/; 20279 + description = "A Python SQL toolkit and Object Relational Mapper"; 20280 + license = licenses.mit; 20281 + }; 20235 20282 }; 20236 20283 20237 20284 sqlalchemy_imageattach = buildPythonPackage rec { ··· 20294 20341 }; 20295 20342 }; 20296 20343 20297 - sqlalchemy_migrate = self.sqlalchemy_migrate_func self.sqlalchemy_1_0; 20298 - sqlalchemy_migrate_0_7 = self.sqlalchemy_migrate_func self.sqlalchemy; 20344 + sqlalchemy_migrate = self.sqlalchemy_migrate_func self.sqlalchemy; 20345 + sqlalchemy_migrate_0_7 = self.sqlalchemy_migrate_func self.sqlalchemy7; 20299 20346 20300 20347 sqlparse = buildPythonPackage rec { 20301 20348 name = "sqlparse-${version}"; ··· 24860 24907 thrift 24861 24908 beautifulsoup4 24862 24909 markdown2 24863 - sqlalchemy 24910 + sqlalchemy7 24864 24911 html2text 24865 24912 evernote 24866 24913 ];