diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2022-01-16 15:52:32 +0100 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2022-01-23 01:09:32 +0100 |
commit | 0a5f324b56581625ed8fb214d42b52b97e04becf (patch) | |
tree | 5d869c47ac7d006f3a5cef513bbc62df35d8a9ed | |
parent | dece898effca6da4f5ad986605b8ae76dcad127c (diff) |
python3Packages.click-completion: add pythonImportsCheck, disable checkPhase
-rw-r--r-- | pkgs/development/python-modules/click-completion/default.nix | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/click-completion/default.nix b/pkgs/development/python-modules/click-completion/default.nix index 19fdac37615a3..dcfcab597b90c 100644 --- a/pkgs/development/python-modules/click-completion/default.nix +++ b/pkgs/development/python-modules/click-completion/default.nix @@ -1,18 +1,38 @@ -{ lib, buildPythonPackage, fetchPypi, isPy3k, - click, jinja2, shellingham, six +{ lib +, buildPythonPackage +, fetchPypi +, isPy27 + +# propagates +, click +, jinja2 +, shellingham +, six }: buildPythonPackage rec { pname = "click-completion"; version = "0.5.2"; - disabled = (!isPy3k); + disabled = isPy27; src = fetchPypi { inherit pname version; sha256 = "5bf816b81367e638a190b6e91b50779007d14301b3f9f3145d68e3cade7bce86"; }; - propagatedBuildInputs = [ click jinja2 shellingham six ]; + propagatedBuildInputs = [ + click + jinja2 + shellingham + six + ]; + + pythonImportsCheck = [ + "click_completion" + ]; + + # has no tests + doCheck = false; meta = with lib; { description = "Add or enhance bash, fish, zsh and powershell completion in Click"; |