python310Packages.face: switch to pytestCheckHook
- add pythonImportsCheck - disable on older Python releases - enable tests
This commit is contained in:
parent
36a0e92ed3
commit
0801990cff
1 changed files with 26 additions and 9 deletions
|
@ -1,30 +1,47 @@
|
|||
{ lib, buildPythonPackage, fetchPypi, boltons, pytest }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, boltons
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "face";
|
||||
version = "22.0.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-1daS+QvI9Zh7Y25H42OEubvaSZqvCneqCwu+g0x2kj0=";
|
||||
hash = "sha256-1daS+QvI9Zh7Y25H42OEubvaSZqvCneqCwu+g0x2kj0=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ boltons ];
|
||||
propagatedBuildInputs = [
|
||||
boltons
|
||||
];
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
checkPhase = "pytest face/test";
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
# ironically, test_parse doesn't parse, but fixed in git so no point
|
||||
# reporting
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [
|
||||
"face"
|
||||
];
|
||||
|
||||
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 ];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue