@@ -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
@@ -480,7 +480,7 @@ in modules // {
480480 };
481481
482482 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 ];
484484
485485 meta = {
486486 homepage = http://bitbucket.org/zzzeek/alembic;
@@ -1628,7 +1628,7 @@ in modules // {
16281628 };
16291629
16301630 buildInputs =
1631− [ self.sqlalchemy
1631+ [ self.sqlalchemy7
16321632 self.pycryptopp
16331633 self.nose
16341634 self.mock
@@ -2154,7 +2154,7 @@ in modules // {
21542154 pymongo
21552155 pyyaml
21562156 requests2
2157− sqlalchemy_1_0
2157+ sqlalchemy
21582158 tables
21592159 toolz
21602160 ];
@@ -3241,7 +3241,7 @@ in modules // {
32413241 sed -i '/distribute/d' setup.py
32423242 '';
32433243
3244− buildInputs = with self; [ self.coverage self.sqlalchemy ];
3244+ buildInputs = with self; [ self.coverage self.sqlalchemy7 ];
32453245
32463246 # ValueError: Could not parse auth file:
32473247 # /tmp/nix-build-.../CoilMQ-0.6.1/coilmq/tests/resources/auth.ini
@@ -7101,7 +7101,7 @@ in modules // {
71017101 propagatedBuildInputs = with self; [
71027102 flup
71037103 ldap
7104− sqlalchemy
7104+ sqlalchemy7
71057105 ];
71067106
71077107 doCheck = true;
@@ -8908,7 +8908,7 @@ in modules // {
89088908 sha256 = "1i9ps5d5snih9xlqhrvmi3qfiygkmqzxh92n25kj4pf89kj4s965";
89098909 };
89108910
8911− propagatedBuildInputs = with self ; [ flask sqlalchemy_1_0 ];
8911+ propagatedBuildInputs = with self ; [ flask sqlalchemy ];
89128912
89138913 meta = {
89148914 description = "SQLAlchemy extension for Flask";
@@ -13720,7 +13720,7 @@ in modules // {
1372013720 };
1372113721
1372213722 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
1372413724 oslo-config oslo-i18n iso8601 Babel alembic pbr psycopg2
1372513725 ];
1372613726 buildInputs = with self; [
@@ -13865,7 +13865,7 @@ in modules // {
1386513865 singledispatch logutils
1386613866 ];
1386713867 buildInputs = with self; [
13868− webtest Mako genshi Kajiki sqlalchemy_1_0 gunicorn jinja2 virtualenv
13868+ webtest Mako genshi Kajiki sqlalchemy gunicorn jinja2 virtualenv
1386913869 ];
1387013870
1387113871 meta = with stdenv.lib; {
@@ -14588,7 +14588,7 @@ in modules // {
1458814588 pytz
1458914589 xlrd
1459014590 bottleneck
14591− sqlalchemy_1_0
14591+ sqlalchemy
1459214592 lxml
1459314593 # Disabling this because an upstream dependency, pep8, is broken on v3.5.
1459414594 (if isPy35 then null else html5lib)
@@ -20165,7 +20165,7 @@ in modules // {
2016520165 rope = if isPy3k then null else self.rope;
2016620166 };
2016720167
20168− sqlalchemy = self.sqlalchemy9.override rec {
20168+ sqlalchemy7 = buildPythonPackage rec {
2016920169 name = "SQLAlchemy-0.7.10";
2017020170 disabled = isPy34 || isPy35;
2017120171 doCheck = !isPyPy;
@@ -20174,17 +20174,32 @@ in modules // {
2017420174 url = "http://pypi.python.org/packages/source/S/SQLAlchemy/${name}.tar.gz";
2017520175 sha256 = "0rhxgr85xdhjn467qfs0dkyj8x46zxcv6ad3dfx3w14xbkb3kakp";
2017620176 };
20177+
2017720178 patches = [
2017820179 # see https://groups.google.com/forum/#!searchin/sqlalchemy/module$20logging$20handlers/sqlalchemy/ukuGhmQ2p6g/2_dOpBEYdDYJ
2017920180 # waiting for 0.7.11 release
2018020181 ../development/python-modules/sqlalchemy-0.7.10-test-failures.patch
2018120182 ];
20183+
2018220184 preConfigure = optionalString isPy3k ''
2018320185 python3 sa2to3.py --no-diffs -w lib test examples
2018420186 '';
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+ };
2018520200 };
2018620201
20187− sqlalchemy8 = self.sqlalchemy9.override rec {
20202+ sqlalchemy8 = buildPythonPackage rec {
2018820203 name = "SQLAlchemy-0.8.7";
2018920204 disabled = isPy34 || isPy35;
2019020205 doCheck = !isPyPy;
@@ -20193,9 +20208,23 @@ in modules // {
2019320208 url = "https://pypi.python.org/packages/source/S/SQLAlchemy/${name}.tar.gz";
2019420209 md5 = "4f3377306309e46739696721b1785335";
2019520210 };
20211+
2019620212 preConfigure = optionalString isPy3k ''
2019720213 python3 sa2to3.py --no-diffs -w lib test examples
2019820214 '';
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+ };
2019920228 };
2020020229
2020120230 sqlalchemy9 = buildPythonPackage rec {
@@ -20224,14 +20253,32 @@ in modules // {
2022420253 };
2022520254 };
2022620255
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";
2023020259
2023120260 src = pkgs.fetchurl {
2023220261 url = "https://pypi.python.org/packages/source/S/SQLAlchemy/${name}.tar.gz";
2023320262 sha256 = "963415bf4ea4fa13698893464bc6917d291331e0e8202dddd0ebfed2864ef7e3";
2023420263 };
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+ };
2023520282 };
2023620283
2023720284 sqlalchemy_imageattach = buildPythonPackage rec {
@@ -20294,8 +20341,8 @@ in modules // {
2029420341 };
2029520342 };
2029620343
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;
2029920346
2030020347 sqlparse = buildPythonPackage rec {
2030120348 name = "sqlparse-${version}";
@@ -24860,7 +24907,7 @@ in modules // {
2486024907 thrift
2486124908 beautifulsoup4
2486224909 markdown2
24863− sqlalchemy
24910+ sqlalchemy7
2486424911 html2text
2486524912 evernote
2486624913 ];