@@ -1214,6 +1214,27 @@ in modules // {
12141214 };
12151215 });
12161216
1217+ attrs = buildPythonPackage (rec {
1218+ pname = "attrs";
1219+ version = "16.0.0";
1220+ name = "attrs-16.0.0";
1221+ src = pkgs.fetchurl {
1222+ url = "mirror://pypi/a/attrs/${name}.tar.gz";
1223+ sha256 = "1g4asv3hbx5aqz7hjzq3q6ss2cpv1rdv66sp5d21cdyjajj2fs6y";
1224+ };
1225+
1226+ # Mac OS X needs clang for testing
1227+ buildInputs = with self; [ pytest hypothesis zope_interface
1228+ pympler coverage ]
1229+ ++ optionals (stdenv.isDarwin) [ pkgs.clang ];
1230+
1231+ meta = {
1232+ description = "Python attributes without boilerplate";
1233+ homepage = https://github.com/hynek/attrs;
1234+ license = licenses.mit;
1235+ };
1236+ });
1237+
12171238 audioread = buildPythonPackage rec {
12181239 name = "audioread-${version}";
12191240 version = "2.1.1";
@@ -6497,7 +6518,13 @@ in modules // {
64976518 sha256 = "1yrdxcj5rzvz8iglircz6icvyggz5fmdcd010n6w3j60yp4p84kc";
64986519 };
64996520
6521+ # https://github.com/AGProjects/python-gnutls/issues/2
6522+ disabled = isPy3k;
6523+
65006524 propagatedBuildInputs = with self; [ pkgs.gnutls ];
6525+ patchPhase = ''
6526+ substituteInPlace gnutls/library/__init__.py --replace "/usr/local/lib" "${pkgs.gnutls33.out}/lib"
6527+ '';
65016528 };
65026529
65036530 gitdb = buildPythonPackage rec {
@@ -12203,6 +12230,22 @@ in modules // {
1220312230 };
1220412231 };
1220512232
12233+ klein = buildPythonPackage rec {
12234+ name = "klein-15.3.1";
12235+ src = pkgs.fetchurl {
12236+ url = "mirror://pypi/k/klein/${name}.tar.gz";
12237+ sha256 = "1hl2psnn1chm698rimyn9dgcpl1mxgc8dj11b3ipp8z37yfjs3z9";
12238+ };
12239+
12240+ propagatedBuildInputs = with self; [ werkzeug twisted ];
12241+
12242+ meta = {
12243+ description = "Klein Web Micro-Framework";
12244+ homepage = "https://github.com/twisted/klein";
12245+ license = licenses.mit;
12246+ };
12247+ };
12248+
1220612249 kombu = buildPythonPackage rec {
1220712250 name = "kombu-${version}";
1220812251 version = "3.0.35";
@@ -13742,6 +13785,31 @@ in modules // {
1374213785 };
1374313786 };
1374413787
13788+ pympler = buildPythonPackage rec {
13789+ pname = "Pympler";
13790+ version = "0.4.3";
13791+ name = "${pname}-${version}";
13792+
13793+ src = pkgs.fetchurl {
13794+ url = "mirror://pypi/P/${pname}/${name}.tar.gz";
13795+ sha256 = "0mhyxqlkha98y8mi5zqcjg23r30mgdjdzs05lghbmqfdyvzjh1a3";
13796+ };
13797+
13798+ # Remove test asizeof.flatsize(), broken and can be missed as
13799+ # test is only useful on python 2.5, see https://github.com/pympler/pympler/issues/22
13800+ patchPhase = ''
13801+ substituteInPlace ./test/asizeof/test_asizeof.py --replace "n, e = test_flatsize" "#n, e = test_flatsize"
13802+ substituteInPlace ./test/asizeof/test_asizeof.py --replace "self.assert_(n," "#self.assert_(n,"
13803+ substituteInPlace ./test/asizeof/test_asizeof.py --replace "self.assert_(not e" "#self.assert_(not e"
13804+ '';
13805+
13806+ meta = {
13807+ description = "Tool to measure, monitor and analyze memory behavior";
13808+ homepage = http://pythonhosted.org/Pympler/;
13809+ license = licenses.asl20;
13810+ };
13811+ };
13812+
1374513813 pymysql = buildPythonPackage rec {
1374613814 name = "pymysql-${version}";
1374713815 version = "0.6.6";
@@ -18206,6 +18274,21 @@ in modules // {
1820618274 };
1820718275 });
1820818276
18277+ pydispatcher = buildPythonPackage (rec {
18278+ version = "2.0.5";
18279+ disabled = isPy35;
18280+ name = "pydispatcher-${version}";
18281+ src = pkgs.fetchurl {
18282+ url = "mirror://pypi/P/PyDispatcher/PyDispatcher-${version}.tar.gz";
18283+ sha256 = "1bswbmhlbqdxlgbxlb6xrlm4k253sg8nvpl1whgsys8p3fg0cw2m";
18284+ };
18285+
18286+ meta = {
18287+ homepage = http://pydispatcher.sourceforge.net/;
18288+ description = "Signal-registration and routing infrastructure for use in multiple contexts";
18289+ license = licenses.bsd3;
18290+ };
18291+ });
1820918292
1821018293 pydot = buildPythonPackage rec {
1821118294 name = "pydot-1.0.2";
@@ -21536,6 +21619,23 @@ in modules // {
2153621619 };
2153721620 };
2153821621
21622+ sqlobject = buildPythonPackage rec {
21623+ version = "3.0.0";
21624+ name = "sqlobject-${version}";
21625+ src = pkgs.fetchurl {
21626+ url = "mirror://pypi/S/SQLObject/SQLObject-${version}.tar.gz";
21627+ sha256 = "15g3g7f4yiyplqf54px1dsnmrw3jb7xwx97z8qzgp9ijmm5vpr8r";
21628+ };
21629+
21630+ propagatedBuildInputs = with self; [ pydispatcher FormEncode ];
21631+
21632+ meta = {
21633+ description = "Object Relational Manager for providing an object interface to your database";
21634+ homepage = "http://www.sqlobject.org/";
21635+ license = licenses.lgpl21;
21636+ };
21637+ };
21638+
2153921639 pgpdump = self.buildPythonPackage rec {
2154021640 name = "pgpdump-1.5";
2154121641