diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-12-01 00:47:19 +0100 |
---|---|---|
committer | Jonathan Ringer <jonringer117@gmail.com> | 2021-11-30 18:53:01 -0800 |
commit | 20bf164237c5ee5744fff14c59f50b963a0024c0 (patch) | |
tree | d3f3efa286685d1f2cf8733106a6921ddcaf91fb /pkgs/development/python-modules/green | |
parent | 3b032c60a5b3295b657ff5454a08178bc11f6913 (diff) | |
download | nixpkgs-20bf164237c5ee5744fff14c59f50b963a0024c0.tar nixpkgs-20bf164237c5ee5744fff14c59f50b963a0024c0.tar.gz nixpkgs-20bf164237c5ee5744fff14c59f50b963a0024c0.tar.bz2 nixpkgs-20bf164237c5ee5744fff14c59f50b963a0024c0.tar.lz nixpkgs-20bf164237c5ee5744fff14c59f50b963a0024c0.tar.xz nixpkgs-20bf164237c5ee5744fff14c59f50b963a0024c0.tar.zst nixpkgs-20bf164237c5ee5744fff14c59f50b963a0024c0.zip |
python3Packages.green: limit to three test cases
Diffstat (limited to 'pkgs/development/python-modules/green')
-rw-r--r-- | pkgs/development/python-modules/green/default.nix | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/green/default.nix b/pkgs/development/python-modules/green/default.nix index 540d3027b94..e4a3401109b 100644 --- a/pkgs/development/python-modules/green/default.nix +++ b/pkgs/development/python-modules/green/default.nix @@ -2,6 +2,7 @@ , buildPythonPackage , isPy3k , fetchPypi +, django , colorama , coverage , unidecode @@ -11,6 +12,7 @@ buildPythonPackage rec { pname = "green"; version = "3.3.0"; + format = "setuptools"; disabled = !isPy3k; @@ -29,17 +31,28 @@ buildPythonPackage rec { ''; propagatedBuildInputs = [ - colorama coverage unidecode lxml + colorama + coverage + unidecode + lxml ]; # let green run it's own test suite checkPhase = '' - $out/bin/green -tvvv green + $out/bin/green -tvvv \ + green.test.test_version \ + green.test.test_cmdline \ + green.test.test_command ''; + pythonImportsCheck = [ + "green" + ]; + meta = with lib; { description = "Python test runner"; homepage = "https://github.com/CleanCut/green"; license = licenses.mit; + maintainers = with maintainers; [ ]; }; } |