mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 15:56:50 +01:00
pythonPackages.green: 2.3.0 -> 2.12.0
This commit is contained in:
parent
fac32de1db
commit
2bdee9b0c3
2 changed files with 27 additions and 17 deletions
26
pkgs/development/python-modules/green/default.nix
Normal file
26
pkgs/development/python-modules/green/default.nix
Normal file
|
@ -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;
|
||||||
|
};
|
||||||
|
}
|
|
@ -20930,23 +20930,7 @@ EOF
|
||||||
|
|
||||||
termstyle = callPackage ../development/python-modules/termstyle { };
|
termstyle = callPackage ../development/python-modules/termstyle { };
|
||||||
|
|
||||||
green = buildPythonPackage rec {
|
green = callPackage ../development/python-modules/green { };
|
||||||
name = "green-${version}";
|
|
||||||
version = "2.3.0";
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/g/green/${name}.tar.gz";
|
|
||||||
sha256 = "1888khfl9yxb8yfxq9b48dxwplqlxx8s0l530z5j7c6bx74v08b4";
|
|
||||||
};
|
|
||||||
|
|
||||||
propagatedBuildInputs = with self; [ termstyle colorama ];
|
|
||||||
buildInputs = with self; [ mock ];
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Python test runner";
|
|
||||||
homepage = "https://github.com/CleanCut/green";
|
|
||||||
license = licenses.mit;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
topydo = throw "python3Packages.topydo was moved to topydo"; # 2017-09-22
|
topydo = throw "python3Packages.topydo was moved to topydo"; # 2017-09-22
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue