git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #27706 from wizzup/cleanup-pythonPackages

Cleanup pkgs/top-level/python-packages.nix

commit9fc4b66800c9eb79172445c0ebd2eedb4f71b107 authorJörg Thalheim <Mic92@users.noreply.github.com> dateFri 28 Jul 2017, 10:54 (9 years ago) parent727c546f1ef532
11 files changed+218−169
pkgs/development/python-modules/amqplib/default.nix+20 pkgs/development/python-modules/apipkg/default.nix+25 pkgs/development/python-modules/apsw/default.nix+25 pkgs/development/python-modules/area53/default.nix+18 pkgs/development/python-modules/args/default.nix+17 pkgs/development/python-modules/asn1ate/default.nix+24 pkgs/development/python-modules/astor/default.nix+19 pkgs/development/python-modules/chai/default.nix+16 pkgs/development/python-modules/chainmap/default.nix+22 pkgs/development/python-modules/funcsigs/default.nix+22 pkgs/top-level/python-packages.nix+10−169
pkgs/development/python-modules/amqplib/default.nixnew file+20
@@ -0,0 +1,20 @@
1+{ stdenv, buildPythonPackage, fetchPypi }:
2+
3+buildPythonPackage rec {
4+ pname = "amqplib";
5+ version = "0.6.1";
6+ name = "${pname}-${version}";
7+
8+ src = fetchPypi {
9+ inherit pname version;
10+ sha256 = "0f2618b74d95cd360a6d46a309a3fb1c37d881a237e269ac195a69a34e0e2f62";
11+ };
12+
13+ # error: invalid command 'test'
14+ doCheck = false;
15+
16+ meta = with stdenv.lib; {
17+ homepage = http://code.google.com/p/py-amqplib/;
18+ description = "Python client for the Advanced Message Queuing Procotol (AMQP)";
19+ };
20+}
pkgs/development/python-modules/apipkg/default.nixnew file+25
@@ -0,0 +1,25 @@
1+{ stdenv, buildPythonPackage, fetchPypi
2+, pytest }:
3+
4+buildPythonPackage rec {
5+ pname = "apipkg";
6+ version = "1.4";
7+ name = "${pname}-${version}";
8+
9+ src = fetchPypi {
10+ inherit pname version;
11+ sha256 = "2e38399dbe842891fe85392601aab8f40a8f4cc5a9053c326de35a1cc0297ac6";
12+ };
13+
14+ buildInputs = [ pytest ];
15+
16+ checkPhase = ''
17+ py.test
18+ '';
19+
20+ meta = with stdenv.lib; {
21+ description = "Namespace control and lazy-import mechanism";
22+ homepage = "http://bitbucket.org/hpk42/apipkg";
23+ license = licenses.mit;
24+ };
25+}
pkgs/development/python-modules/apsw/default.nixnew file+25
@@ -0,0 +1,25 @@
1+{ stdenv, buildPythonPackage, fetchurl
2+, sqlite, isPyPy }:
3+
4+buildPythonPackage rec {
5+ pname = "apsw";
6+ version = "3.7.6.2-r1";
7+ name = "${pname}-${version}";
8+
9+ disabled = isPyPy;
10+
11+ src = fetchurl {
12+ url = "http://apsw.googlecode.com/files/${name}.zip";
13+ sha256 = "cb121b2bce052609570a2f6def914c0aa526ede07b7096dddb78624d77f013eb";
14+ };
15+
16+ buildInputs = [ sqlite ];
17+
18+ # python: double free or corruption (fasttop): 0x0000000002fd4660 ***
19+ doCheck = false;
20+
21+ meta = with stdenv.lib; {
22+ description = "A Python wrapper for the SQLite embedded relational database engine";
23+ homepage = http://code.google.com/p/apsw/;
24+ };
25+}
pkgs/development/python-modules/area53/default.nixnew file+18
@@ -0,0 +1,18 @@
1+{ stdenv, buildPythonPackage, fetchPypi
2+, boto }:
3+
4+buildPythonPackage rec {
5+ pname = "Area53";
6+ version = "0.94";
7+ name = "${pname}-${version}";
8+
9+ src = fetchPypi {
10+ inherit pname version;
11+ sha256 = "0v9b7f8b6v21y410anx5sr52k2ac8jrzdf19q6m6p0zsdsf9vr42";
12+ };
13+
14+ # error: invalid command 'test'
15+ doCheck = false;
16+
17+ propagatedBuildInputs = [ boto ];
18+}
pkgs/development/python-modules/args/default.nixnew file+17
@@ -0,0 +1,17 @@
1+{ stdenv, buildPythonPackage, fetchPypi }:
2+
3+buildPythonPackage rec {
4+ pname = "args";
5+ version = "0.1.0";
6+ name = "${pname}-${version}";
7+
8+ src = fetchPypi {
9+ inherit pname version;
10+ sha256 = "a785b8d837625e9b61c39108532d95b85274acd679693b71ebb5156848fcf814";
11+ };
12+
13+ meta = with stdenv.lib; {
14+ description = "Command Arguments for Humans";
15+ homepage = "https://github.com/kennethreitz/args";
16+ };
17+}
pkgs/development/python-modules/asn1ate/default.nixnew file+24
@@ -0,0 +1,24 @@
1+{ stdenv, buildPythonPackage, fetchFromGitHub
2+, pyparsing }:
3+
4+buildPythonPackage rec {
5+ pname = "asn1ate";
6+ date = "20160810";
7+ name = "${pname}-unstable-${date}";
8+
9+ src = fetchFromGitHub {
10+ sha256 = "04pddr1mh2v9qq8fg60czwvjny5qwh4nyxszr3qc4bipiiv2xk9w";
11+ rev = "c56104e8912400135509b584d84423ee05a5af6b";
12+ owner = "kimgr";
13+ repo = pname;
14+ };
15+
16+ propagatedBuildInputs = [ pyparsing ];
17+
18+ meta = with stdenv.lib; {
19+ description = "Python library for translating ASN.1 into other forms";
20+ license = licenses.bsd3;
21+ platforms = platforms.linux;
22+ maintainers = with maintainers; [ leenaars ];
23+ };
24+}
pkgs/development/python-modules/astor/default.nixnew file+19
@@ -0,0 +1,19 @@
1+{ stdenv, buildPythonPackage, fetchPypi }:
2+
3+buildPythonPackage rec {
4+ pname = "astor";
5+ version = "0.5";
6+ name = "${pname}-${version}";
7+
8+ src = fetchPypi {
9+ inherit pname version;
10+ sha256 = "1fdafq5hkis1fxqlmhw0sn44zp2ar46nxhbc22cvwg7hsd8z5gsa";
11+ };
12+
13+ meta = with stdenv.lib; {
14+ description = "Library for reading, writing and rewriting python AST";
15+ homepage = https://github.com/berkerpeksag/astor;
16+ license = licenses.bsd3;
17+ maintainers = with maintainers; [ nixy ];
18+ };
19+}
pkgs/development/python-modules/chai/default.nixnew file+16
@@ -0,0 +1,16 @@
1+{ stdenv, buildPythonPackage, fetchPypi }:
2+
3+buildPythonPackage rec {
4+ pname = "chai";
5+ version = "1.1.1";
6+ name = "${pname}-${version}";
7+
8+ src = fetchPypi {
9+ inherit pname version;
10+ sha256 = "016kf3irrclpkpvcm7q0gmkfibq7jgy30a9v73pp42bq9h9a32bl";
11+ };
12+
13+ meta = with stdenv.lib; {
14+ description = "Mocking, stubbing and spying framework for python";
15+ };
16+}
pkgs/development/python-modules/chainmap/default.nixnew file+22
@@ -0,0 +1,22 @@
1+{ stdenv, buildPythonPackage, fetchPypi }:
2+
3+buildPythonPackage rec {
4+ pname = "chainmap";
5+ version = "1.0.2";
6+ name = "${pname}-${version}";
7+
8+ src = fetchPypi {
9+ inherit pname version;
10+ sha256 = "09h5gq43w516fqswlca0nhmd2q3v8hxq15z4wqrznfwix6ya6pa0";
11+ };
12+
13+ # Requires tox
14+ doCheck = false;
15+
16+ meta = with stdenv.lib; {
17+ description = "Backport/clone of ChainMap";
18+ homepage = "https://bitbucket.org/jeunice/chainmap";
19+ license = licenses.psfl;
20+ maintainers = with maintainers; [ abbradar ];
21+ };
22+}
pkgs/development/python-modules/funcsigs/default.nixnew file+22
@@ -0,0 +1,22 @@
1+{ stdenv, buildPythonPackage, fetchPypi
2+, unittest2 }:
3+
4+buildPythonPackage rec {
5+ pname = "funcsigs";
6+ version = "1.0.2";
7+ name = "${pname}-${version}";
8+
9+ src = fetchPypi {
10+ inherit pname version;
11+ sha256 = "0l4g5818ffyfmfs1a924811azhjj8ax9xd1cffr1mzd3ycn0zfx7";
12+ };
13+
14+ buildInputs = [ unittest2 ];
15+
16+ meta = with stdenv.lib; {
17+ description = "Python function signatures from PEP362 for Python 2.6, 2.7 and 3.2+";
18+ homepage = "https://github.com/aliles/funcsigs";
19+ maintainers = with maintainers; [ garbas ];
20+ license = licenses.asl20;
21+ };
22+}
pkgs/top-level/python-packages.nix+10−169
@@ -543,22 +543,7 @@ in {
543543 };
544544
545545
546− amqplib = buildPythonPackage rec {
547− name = "amqplib-0.6.1";
548−
549− src = pkgs.fetchurl {
550− url = "http://py-amqplib.googlecode.com/files/${name}.tgz";
551− sha256 = "0f2618b74d95cd360a6d46a309a3fb1c37d881a237e269ac195a69a34e0e2f62";
552− };
553−
554− # error: invalid command 'test'
555− doCheck = false;
556−
557− meta = {
558− homepage = http://code.google.com/p/py-amqplib/;
559− description = "Python client for the Advanced Message Queuing Procotol (AMQP)";
560− };
561− };
546+ amqplib = callPackage ../development/python-modules/amqplib {};
562547
563548 ansible = self.ansible2;
564549 ansible2 = self.ansible_2_3;
@@ -567,26 +552,7 @@ in {
567552 ansible_2_2 = callPackage ../development/python-modules/ansible/2.2.nix {};
568553 ansible_2_3 = callPackage ../development/python-modules/ansible/2.3.nix {};
569554
570− apipkg = buildPythonPackage rec {
571− name = "apipkg-1.4";
572−
573− src = pkgs.fetchurl {
574− url = "mirror://pypi/a/apipkg/${name}.tar.gz";
575− sha256 = "2e38399dbe842891fe85392601aab8f40a8f4cc5a9053c326de35a1cc0297ac6";
576− };
577−
578− buildInputs = with self; [ pytest ];
579−
580− checkPhase = ''
581− py.test
582− '';
583−
584− meta = {
585− description = "Namespace control and lazy-import mechanism";
586− homepage = "http://bitbucket.org/hpk42/apipkg";
587− license = licenses.mit;
588− };
589− };
555+ apipkg = callPackage ../development/python-modules/apipkg {};
590556
591557 appdirs = callPackage ../development/python-modules/appdirs { };
592558
@@ -622,42 +588,9 @@ in {
622588 };
623589 };
624590
625− apsw = buildPythonPackage rec {
626− name = "apsw-3.7.6.2-r1";
627− disabled = isPyPy;
591+ apsw = callPackage ../development/python-modules/apsw {};
628592
629− src = pkgs.fetchurl {
630− url = "http://apsw.googlecode.com/files/${name}.zip";
631− sha256 = "cb121b2bce052609570a2f6def914c0aa526ede07b7096dddb78624d77f013eb";
632− };
633−
634− buildInputs = with self; [ pkgs.sqlite ];
635−
636− # python: double free or corruption (fasttop): 0x0000000002fd4660 ***
637− doCheck = false;
638−
639− meta = {
640− description = "A Python wrapper for the SQLite embedded relational database engine";
641− homepage = http://code.google.com/p/apsw/;
642− };
643− };
644−
645− astor = buildPythonPackage rec {
646− name = "astor-${version}";
647− version = "0.5";
648−
649− src = pkgs.fetchurl {
650− url = "mirror://pypi/a/astor/${name}.tar.gz";
651− sha256 = "1fdafq5hkis1fxqlmhw0sn44zp2ar46nxhbc22cvwg7hsd8z5gsa";
652− };
653−
654− meta = with pkgs.stdenv.lib; {
655− description = "Library for reading, writing and rewriting python AST";
656− homepage = https://github.com/berkerpeksag/astor;
657− license = licenses.bsd3;
658− maintainers = with maintainers; [ nixy ];
659− };
660− };
593+ astor = callPackage ../development/python-modules/astor {};
661594
662595 asyncio = if (pythonAtLeast "3.3") then buildPythonPackage rec {
663596 name = "asyncio-${version}";
@@ -676,91 +609,19 @@ in {
676609 };
677610 } else null;
678611
679− funcsigs = buildPythonPackage rec {
680− name = "funcsigs-1.0.2";
681−
682− src = pkgs.fetchurl {
683− url = "mirror://pypi/f/funcsigs/${name}.tar.gz";
684− sha256 = "0l4g5818ffyfmfs1a924811azhjj8ax9xd1cffr1mzd3ycn0zfx7";
685− };
686−
687− buildInputs = with self; [
688− unittest2
689− ];
690−
691− meta = with pkgs.stdenv.lib; {
692− description = "Python function signatures from PEP362 for Python 2.6, 2.7 and 3.2+";
693− homepage = "https://github.com/aliles/funcsigs";
694− maintainers = with maintainers; [ garbas ];
695− license = licenses.asl20;
696− };
697− };
612+ funcsigs = callPackage ../development/python-modules/funcsigs { };
698613
699614 APScheduler = callPackage ../development/python-modules/APScheduler { };
700615
701− args = buildPythonPackage rec {
702− name = "args-0.1.0";
703−
704− src = pkgs.fetchurl {
705− url = "mirror://pypi/a/args/${name}.tar.gz";
706− sha256 = "a785b8d837625e9b61c39108532d95b85274acd679693b71ebb5156848fcf814";
707− };
708−
709− meta = {
710− description = "Command Arguments for Humans";
711− homepage = "https://github.com/kennethreitz/args";
712− };
713− };
616+ args = callPackage ../development/python-modules/args { };
714617
715618 argcomplete = callPackage ../development/python-modules/argcomplete { };
716619
717− area53 = buildPythonPackage (rec {
718− name = "Area53-0.94";
719−
720− src = pkgs.fetchurl {
721− url = "mirror://pypi/A/Area53/${name}.tar.gz";
722− sha256 = "0v9b7f8b6v21y410anx5sr52k2ac8jrzdf19q6m6p0zsdsf9vr42";
723− };
724−
725− # error: invalid command 'test'
726− doCheck = false;
727−
728− propagatedBuildInputs = with self; [ self.boto ];
620+ area53 = callPackage ../development/python-modules/area53 { };
729621
730− });
622+ chai = callPackage ../development/python-modules/chai { };
731623
732− chai = buildPythonPackage rec {
733− name = "chai-${version}";
734− version = "1.1.1";
735−
736− src = pkgs.fetchurl {
737− url = "mirror://pypi/c/chai/${name}.tar.gz";
738− sha256 = "016kf3irrclpkpvcm7q0gmkfibq7jgy30a9v73pp42bq9h9a32bl";
739− };
740−
741− meta = {
742− description = "Mocking, stubbing and spying framework for python";
743− };
744− };
745−
746− chainmap = buildPythonPackage rec {
747− name = "chainmap-1.0.2";
748−
749− src = pkgs.fetchurl {
750− url = "mirror://pypi/c/chainmap/${name}.tar.gz";
751− sha256 = "09h5gq43w516fqswlca0nhmd2q3v8hxq15z4wqrznfwix6ya6pa0";
752− };
753−
754− # Requires tox
755− doCheck = false;
756−
757− meta = {
758− description = "Backport/clone of ChainMap";
759− homepage = "https://bitbucket.org/jeunice/chainmap";
760− license = licenses.psfl;
761− maintainers = with maintainers; [ abbradar ];
762− };
763− };
624+ chainmap = callPackage ../development/python-modules/chainmap { };
764625
765626 arelle = callPackage ../development/python-modules/arelle {
766627 gui = true;
@@ -789,27 +650,7 @@ in {
789650
790651 async-timeout = callPackage ../development/python-modules/async_timeout { };
791652
792− asn1ate = buildPythonPackage rec {
793− pname = "asn1ate";
794− date = "20160810";
795− name = "${pname}-unstable-${date}";
796−
797− src = pkgs.fetchFromGitHub {
798− sha256 = "04pddr1mh2v9qq8fg60czwvjny5qwh4nyxszr3qc4bipiiv2xk9w";
799− rev = "c56104e8912400135509b584d84423ee05a5af6b";
800− owner = "kimgr";
801− repo = pname;
802− };
803−
804− propagatedBuildInputs = with self; [ pyparsing ];
805−
806− meta = with stdenv.lib; {
807− description = "Python library for translating ASN.1 into other forms";
808− license = licenses.bsd3;
809− platforms = platforms.linux;
810− maintainers = with maintainers; [ leenaars ];
811− };
812−};
653+ asn1ate = callPackage ../development/python-modules/asn1ate { };
813654
814655 atomiclong = buildPythonPackage rec {
815656 version = "0.1.1";