diff options
-rw-r--r-- | lib/maintainers.nix | 1 | ||||
-rw-r--r-- | pkgs/development/python-modules/3to2/default.nix | 32 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
3 files changed, 35 insertions, 0 deletions
diff --git a/lib/maintainers.nix b/lib/maintainers.nix index e31a193a77b8..e8c1b3649196 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -353,6 +353,7 @@ msackman = "Matthew Sackman <matthew@wellquite.org>"; mschristiansen = "Mikkel Christiansen <mikkel@rheosystems.com>"; msteen = "Matthijs Steen <emailmatthijs@gmail.com>"; + mt-caret = "Masayuki Takeda <mtakeda.enigsol@gmail.com>"; mtreskin = "Max Treskin <zerthurd@gmail.com>"; mudri = "James Wood <lamudri@gmail.com>"; muflax = "Stefan Dorn <mail@muflax.com>"; diff --git a/pkgs/development/python-modules/3to2/default.nix b/pkgs/development/python-modules/3to2/default.nix new file mode 100644 index 000000000000..4941db3c9964 --- /dev/null +++ b/pkgs/development/python-modules/3to2/default.nix @@ -0,0 +1,32 @@ +{ lib +, buildPythonPackage +, fetchurl +, pytest +}: + +buildPythonPackage rec { + pname = "3to2"; + version = "1.1.1"; + name = "${pname}-${version}"; + + src = fetchurl { + url = "https://files.pythonhosted.org/packages/8f/ab/58a363eca982c40e9ee5a7ca439e8ffc5243dde2ae660ba1ffdd4868026b/${pname}-${version}.zip"; + sha256 = "fef50b2b881ef743f269946e1090b77567b71bb9a9ce64b7f8e699b562ff685c"; + }; + + checkInputs = [ pytest ]; + + checkPhase = '' + py.test lib3to2/tests + ''; + + # Test failing due to upstream issue (https://bitbucket.org/amentajo/lib3to2/issues/50/testsuite-fails-with-new-python-35) + doCheck = false; + + meta = { + homepage = https://bitbucket.org/amentajo/lib3to2; + description = "Refactors valid 3.x syntax into valid 2.x syntax, if a syntactical conversion is possible"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ mt-caret ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4093dac55c84..893696516bec 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -112,6 +112,8 @@ in { }; }; + "3to2" = callPackage ../development/python-modules/3to2 { }; + aenum = callPackage ../development/python-modules/aenum { }; agate = callPackage ../development/python-modules/agate { }; |