@@ -931,7 +931,36 @@ in {
931931 };
932932 };
933933
934− almir = buildPythonPackage rec {
934+ almir = let
935+ sqlalchemy_0_8 = buildPythonPackage rec {
936+ name = "SQLAlchemy-0.8.7";
937+ disabled = isPy34 || isPy35;
938+# doCheck = !isPyPy;
939+
940+ src = pkgs.fetchurl {
941+ url = "mirror://pypi/S/SQLAlchemy/${name}.tar.gz";
942+ sha256 = "9edb47d137db42d57fd26673d6c841e189b1aeb9b566cca908962fcc8448c0bc";
943+ };
944+
945+ preConfigure = optionalString isPy3k ''
946+ python3 sa2to3.py --no-diffs -w lib test examples
947+ '';
948+
949+ buildInputs = with self; [ nose mock ]
950+ ++ stdenv.lib.optional doCheck pysqlite;
951+
952+ checkPhase = ''
953+ ${python.executable} sqla_nose.py
954+ '';
955+
956+ doCheck = false;
957+
958+ meta = {
959+ homepage = http://www.sqlalchemy.org/;
960+ description = "A Python SQL toolkit and Object Relational Mapper";
961+ };
962+ };
963+ in buildPythonPackage rec {
935964 name = "almir-0.1.8";
936965
937966 src = pkgs.fetchurl {
@@ -964,12 +993,12 @@ in {
964993 self.pyramid_jinja2
965994 self.pyramid_tm
966995 self.pytz
967− self.sqlalchemy8
996+ sqlalchemy_0_8
968997 self.transaction
969998 self.waitress
970999 self.webhelpers
9711000 self.psycopg2
972− (self.zope_sqlalchemy.override rec {propagatedBuildInputs = with self; [ sqlalchemy8 transaction ];})
1001+ (self.zope_sqlalchemy.override rec {propagatedBuildInputs = with self; [ sqlalchemy_0_8 transaction ];})
9731002 ];
9741003
9751004 postInstall = ''
@@ -979,6 +1008,8 @@ in {
9791008 meta = {
9801009 maintainers = with maintainers; [ domenkozar ];
9811010 platforms = platforms.all;
1011+ # Two versions of sqlalchemy in closure
1012+ broken = true;
9821013 };
9831014 };
9841015
@@ -24761,37 +24792,9 @@ in {
2476124792 rope = if isPy3k then null else self.rope;
2476224793 };
2476324794
24764− sqlalchemy8 = buildPythonPackage rec {
24765− name = "SQLAlchemy-0.8.7";
24766− disabled = isPy34 || isPy35;
24767− doCheck = !isPyPy;
24768−
24769− src = pkgs.fetchurl {
24770− url = "mirror://pypi/S/SQLAlchemy/${name}.tar.gz";
24771− sha256 = "9edb47d137db42d57fd26673d6c841e189b1aeb9b566cca908962fcc8448c0bc";
24772− };
24773−
24774− preConfigure = optionalString isPy3k ''
24775− python3 sa2to3.py --no-diffs -w lib test examples
24776− '';
24777−
24778− buildInputs = with self; [ nose mock ]
24779− ++ stdenv.lib.optional doCheck pysqlite;
24780−
24781− checkPhase = ''
24782− ${python.executable} sqla_nose.py
24783− '';
24784−
24785− meta = {
24786− homepage = http://www.sqlalchemy.org/;
24787− description = "A Python SQL toolkit and Object Relational Mapper";
24788− broken = true;
24789− };
24790− };
2479124795
24792− sqlalchemy = self.sqlalchemy_1_0;
2479324796
24794− sqlalchemy_1_0 = buildPythonPackage rec {
24797+ sqlalchemy = buildPythonPackage rec {
2479524798 name = "SQLAlchemy-${version}";
2479624799 version = "1.0.15";
2479724800