@@ -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 ];