diff options
author | Robert Schütz <robert.schuetz@stud.uni-heidelberg.de> | 2018-02-20 01:16:31 +0100 |
---|---|---|
committer | Robert Schütz <robert.schuetz@stud.uni-heidelberg.de> | 2018-02-22 01:46:10 +0100 |
commit | 2bdee9b0c3877ff8d95239ff80c6bcb1ad8fa213 (patch) | |
tree | 16ee1932a1fe062529179888005d96e5219037cf /pkgs/development/python-modules/green | |
parent | fac32de1db78aca0be8bd523162bf5e3eced5bdc (diff) |
pythonPackages.green: 2.3.0 -> 2.12.0
Diffstat (limited to 'pkgs/development/python-modules/green')
-rw-r--r-- | pkgs/development/python-modules/green/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/green/default.nix b/pkgs/development/python-modules/green/default.nix new file mode 100644 index 0000000000000..fa09e4ded214d --- /dev/null +++ b/pkgs/development/python-modules/green/default.nix @@ -0,0 +1,26 @@ +{ lib, buildPythonPackage, fetchPypi, isPy3k, colorama, coverage, termstyle, unidecode, mock, backports_shutil_get_terminal_size }: + +buildPythonPackage rec { + pname = "green"; + version = "2.12.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "8cdd2934eff754c9664f373ee0d77cb1cb35dbbf3b719b8ae3b059718db875df"; + }; + + prePatch = '' + # See https://github.com/CleanCut/green/pull/182 + substituteInPlace setup.py --replace python-termstyle termstyle + ''; + + propagatedBuildInputs = [ + colorama coverage termstyle unidecode + ] ++ lib.optionals (!isPy3k) [ mock backports_shutil_get_terminal_size ]; + + meta = with lib; { + description = "Python test runner"; + homepage = https://github.com/CleanCut/green; + license = licenses.mit; + }; +} |