diff options
Diffstat (limited to 'pkgs/development/python-modules/face/default.nix')
-rw-r--r-- | pkgs/development/python-modules/face/default.nix | 37 |
1 files changed, 27 insertions, 10 deletions
diff --git a/pkgs/development/python-modules/face/default.nix b/pkgs/development/python-modules/face/default.nix index db1810ca056d5..50db0ce949918 100644 --- a/pkgs/development/python-modules/face/default.nix +++ b/pkgs/development/python-modules/face/default.nix @@ -1,30 +1,47 @@ -{ lib, buildPythonPackage, fetchPypi, boltons, pytest }: +{ lib +, buildPythonPackage +, fetchPypi +, boltons +, pytestCheckHook +, pythonOlder +}: buildPythonPackage rec { pname = "face"; - version = "20.1.1"; + version = "22.0.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "7d59ca5ba341316e58cf72c6aff85cca2541cf5056c4af45cb63af9a814bed3e"; + hash = "sha256-1daS+QvI9Zh7Y25H42OEubvaSZqvCneqCwu+g0x2kj0="; }; - propagatedBuildInputs = [ boltons ]; + propagatedBuildInputs = [ + boltons + ]; + + checkInputs = [ + pytestCheckHook + ]; - checkInputs = [ pytest ]; - checkPhase = "pytest face/test"; + pythonImportsCheck = [ + "face" + ]; - # ironically, test_parse doesn't parse, but fixed in git so no point - # reporting - doCheck = false; + disabledTests = [ + # Assertion error as we take the Python release into account + "test_search_prs_basic" + ]; meta = with lib; { - homepage = "https://github.com/mahmoud/face"; description = "A command-line interface parser and framework"; longDescription = '' A command-line interface parser and framework, friendly for users, full-featured for developers. ''; + homepage = "https://github.com/mahmoud/face"; license = licenses.bsd3; maintainers = with maintainers; [ twey ]; }; |