git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commit0467a17858d9567967c37ec3fa97211e14a1069e authorLancelot SIX <lsix@lancelotsix.com> dateThu 25 Feb 2016, 15:02 (11 years ago) parente054644
8 files changed+72−25
pkgs/applications/virtualization/openstack/glance.nix+1−1 pkgs/applications/virtualization/openstack/keystone.nix+1−1 pkgs/applications/virtualization/openstack/neutron.nix+1−1 pkgs/applications/virtualization/openstack/nova.nix+1−1 pkgs/applications/virtualization/virtinst/default.nix+1−1 pkgs/development/tools/build-managers/buildbot/default.nix+1−1 pkgs/top-level/all-packages.nix+1−1 pkgs/top-level/python-packages.nix+65−18
pkgs/applications/virtualization/openstack/glance.nix+1−1
@@ -15,7 +15,7 @@ pythonPackages.buildPythonApplication rec {
1515
1616 # https://github.com/openstack/glance/blob/stable/liberty/requirements.txt
1717 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
1919 httplib2 pycrypto iso8601 stevedore futurist keystonemiddleware paste
2020 jsonschema keystoneclient pyopenssl six retrying semantic-version qpid-python
2121 WSME osprofiler glance_store castellan taskflow cryptography xattr pysendfile
pkgs/applications/virtualization/openstack/keystone.nix+1−1
@@ -18,7 +18,7 @@ pythonPackages.buildPythonApplication rec {
1818 # https://github.com/openstack/keystone/blob/stable/liberty/requirements.txt
1919 propagatedBuildInputs = with pythonPackages; [
2020 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
2222 keystonemiddleware oauthlib pysaml2 dogpile_cache jsonschema pycadf msgpack
2323 xmlsec MySQL_python
2424
pkgs/applications/virtualization/openstack/neutron.nix+1−1
@@ -15,7 +15,7 @@ pythonPackages.buildPythonApplication rec {
1515 # https://github.com/openstack/neutron/blob/stable/liberty/requirements.txt
1616 propagatedBuildInputs = with pythonPackages; [
1717 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
1919 stevedore pecan ryu networking-hyperv MySQL_python
2020
2121 # clients
pkgs/applications/virtualization/openstack/nova.nix+1−1
@@ -19,7 +19,7 @@ pythonPackages.buildPythonApplication rec {
1919
2020 # https://github.com/openstack/nova/blob/stable/liberty/requirements.txt
2121 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
2323 webob greenlet PasteDeploy paste prettytable sqlalchemy_migrate netaddr
2424 netifaces paramiko Babel iso8601 jsonschema keystoneclient requests2 six
2525 stevedore websockify rfc3986 os-brick psutil_1 alembic psycopg2 pymysql
pkgs/applications/virtualization/virtinst/default.nix+1−1
@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
1313 };
1414
1515 pythonPath = with pythonPackages;
16− [ setuptools eventlet greenlet gflags netaddr sqlalchemy carrot routes
16+ [ setuptools eventlet greenlet gflags netaddr sqlalchemy7 carrot routes
1717 PasteDeploy m2crypto ipy twisted sqlalchemy_migrate
1818 distutils_extra simplejson readline glanceclient cheetah lockfile httplib2
1919 # !!! should libvirt be a build-time dependency? Note that
pkgs/development/tools/build-managers/buildbot/default.nix+1−1
@@ -1,5 +1,5 @@
11{ stdenv, buildPythonApplication, fetchurl, twisted, dateutil, jinja2
2−, sqlalchemy , sqlalchemy_migrate_0_7
2+, sqlalchemy_migrate_0_7
33, enableDebugClient ? false, pygobject ? null, pyGtkGlade ? null
44}:
55
pkgs/top-level/all-packages.nix+1−1
@@ -5724,7 +5724,7 @@ let
57245724 };
57255725
57265726 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;
57285728 dateutil = pythonPackages.dateutil_1_5;
57295729 };
57305730
pkgs/top-level/python-packages.nix+65−18
@@ -235,7 +235,7 @@ in modules // {
235235 sha256 = "1ywimbisgb5g7xl9nrfwcm7dv3j8fsrjfp7bxb3l58zbsrzj6z2s";
236236 };
237237
238− propagatedBuildInputs = with self; [ appdirs colorama dateutil requests2 requests_toolbelt sqlalchemy ];
238+ propagatedBuildInputs = with self; [ appdirs colorama dateutil requests2 requests_toolbelt sqlalchemy7 ];
239239
240240 makeWrapperArgs = [ "--prefix LIBFUSE_PATH : ${pkgs.fuse}/lib/libfuse.so" ];
241241
@@ -457,7 +457,7 @@ in modules // {
457457 };
458458
459459 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 ];
461461
462462 meta = {
463463 homepage = http://bitbucket.org/zzzeek/alembic;
@@ -1575,7 +1575,7 @@ in modules // {
15751575 };
15761576
15771577 buildInputs =
1578− [ self.sqlalchemy
1578+ [ self.sqlalchemy7
15791579 self.pycryptopp
15801580 self.nose
15811581 self.mock
@@ -2101,7 +2101,7 @@ in modules // {
21012101 pymongo
21022102 pyyaml
21032103 requests2
2104− sqlalchemy_1_0
2104+ sqlalchemy
21052105 tables
21062106 toolz
21072107 ];
@@ -3188,7 +3188,7 @@ in modules // {
31883188 sed -i '/distribute/d' setup.py
31893189 '';
31903190
3191− buildInputs = with self; [ self.coverage self.sqlalchemy ];
3191+ buildInputs = with self; [ self.coverage self.sqlalchemy7 ];
31923192
31933193 # ValueError: Could not parse auth file:
31943194 # /tmp/nix-build-.../CoilMQ-0.6.1/coilmq/tests/resources/auth.ini
@@ -7087,7 +7087,7 @@ in modules // {
70877087 propagatedBuildInputs = with self; [
70887088 flup
70897089 ldap
7090− sqlalchemy
7090+ sqlalchemy7
70917091 ];
70927092
70937093 doCheck = true;
@@ -8894,7 +8894,7 @@ in modules // {
88948894 sha256 = "1i9ps5d5snih9xlqhrvmi3qfiygkmqzxh92n25kj4pf89kj4s965";
88958895 };
88968896
8897− propagatedBuildInputs = with self ; [ flask sqlalchemy_1_0 ];
8897+ propagatedBuildInputs = with self ; [ flask sqlalchemy ];
88988898
88998899 meta = {
89008900 description = "SQLAlchemy extension for Flask";
@@ -13699,7 +13699,7 @@ in modules // {
1369913699 };
1370013700
1370113701 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
1370313703 oslo-config oslo-i18n iso8601 Babel alembic pbr psycopg2
1370413704 ];
1370513705 buildInputs = with self; [
@@ -13844,7 +13844,7 @@ in modules // {
1384413844 singledispatch logutils
1384513845 ];
1384613846 buildInputs = with self; [
13847− webtest Mako genshi Kajiki sqlalchemy_1_0 gunicorn jinja2 virtualenv
13847+ webtest Mako genshi Kajiki sqlalchemy gunicorn jinja2 virtualenv
1384813848 ];
1384913849
1385013850 meta = with stdenv.lib; {
@@ -14567,7 +14567,7 @@ in modules // {
1456714567 pytz
1456814568 xlrd
1456914569 bottleneck
14570− sqlalchemy_1_0
14570+ sqlalchemy
1457114571 lxml
1457214572 # Disabling this because an upstream dependency, pep8, is broken on v3.5.
1457314573 (if isPy35 then null else html5lib)
@@ -20132,7 +20132,7 @@ in modules // {
2013220132 rope = if isPy3k then null else self.rope;
2013320133 };
2013420134
20135− sqlalchemy = self.sqlalchemy9.override rec {
20135+ sqlalchemy7 = buildPythonPackage rec {
2013620136 name = "SQLAlchemy-0.7.10";
2013720137 disabled = isPy34 || isPy35;
2013820138 doCheck = !isPyPy;
@@ -20141,17 +20141,32 @@ in modules // {
2014120141 url = "http://pypi.python.org/packages/source/S/SQLAlchemy/${name}.tar.gz";
2014220142 sha256 = "0rhxgr85xdhjn467qfs0dkyj8x46zxcv6ad3dfx3w14xbkb3kakp";
2014320143 };
20144+
2014420145 patches = [
2014520146 # see https://groups.google.com/forum/#!searchin/sqlalchemy/module$20logging$20handlers/sqlalchemy/ukuGhmQ2p6g/2_dOpBEYdDYJ
2014620147 # waiting for 0.7.11 release
2014720148 ../development/python-modules/sqlalchemy-0.7.10-test-failures.patch
2014820149 ];
20150+
2014920151 preConfigure = optionalString isPy3k ''
2015020152 python3 sa2to3.py --no-diffs -w lib test examples
2015120153 '';
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+ };
2015220167 };
2015320168
20154− sqlalchemy8 = self.sqlalchemy9.override rec {
20169+ sqlalchemy8 = buildPythonPackage rec {
2015520170 name = "SQLAlchemy-0.8.7";
2015620171 disabled = isPy34 || isPy35;
2015720172 doCheck = !isPyPy;
@@ -20160,9 +20175,23 @@ in modules // {
2016020175 url = "https://pypi.python.org/packages/source/S/SQLAlchemy/${name}.tar.gz";
2016120176 md5 = "4f3377306309e46739696721b1785335";
2016220177 };
20178+
2016320179 preConfigure = optionalString isPy3k ''
2016420180 python3 sa2to3.py --no-diffs -w lib test examples
2016520181 '';
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+ };
2016620195 };
2016720196
2016820197 sqlalchemy9 = buildPythonPackage rec {
@@ -20191,14 +20220,32 @@ in modules // {
2019120220 };
2019220221 };
2019320222
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";
2019720226
2019820227 src = pkgs.fetchurl {
2019920228 url = "https://pypi.python.org/packages/source/S/SQLAlchemy/${name}.tar.gz";
2020020229 sha256 = "963415bf4ea4fa13698893464bc6917d291331e0e8202dddd0ebfed2864ef7e3";
2020120230 };
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+ };
2020220249 };
2020320250
2020420251 sqlalchemy_imageattach = buildPythonPackage rec {
@@ -20261,8 +20308,8 @@ in modules // {
2026120308 };
2026220309 };
2026320310
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;
2026620313
2026720314 sqlparse = buildPythonPackage rec {
2026820315 name = "sqlparse-${version}";
@@ -24810,7 +24857,7 @@ in modules // {
2481024857 thrift
2481124858 beautifulsoup4
2481224859 markdown2
24813− sqlalchemy
24860+ sqlalchemy7
2481424861 html2text
2481524862 evernote
2481624863 ];