python310Packages.face: switch to pytestCheckHook
- add pythonImportsCheck - disable on older Python releases - enable tests
This commit is contained in:
parent
36a0e92ed3
commit
0801990cff
@ -1,30 +1,47 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi, boltons, pytest }:
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, boltons
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "face";
|
pname = "face";
|
||||||
version = "22.0.0";
|
version = "22.0.0";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "sha256-1daS+QvI9Zh7Y25H42OEubvaSZqvCneqCwu+g0x2kj0=";
|
hash = "sha256-1daS+QvI9Zh7Y25H42OEubvaSZqvCneqCwu+g0x2kj0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ boltons ];
|
propagatedBuildInputs = [
|
||||||
|
boltons
|
||||||
|
];
|
||||||
|
|
||||||
checkInputs = [ pytest ];
|
checkInputs = [
|
||||||
checkPhase = "pytest face/test";
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
# ironically, test_parse doesn't parse, but fixed in git so no point
|
pythonImportsCheck = [
|
||||||
# reporting
|
"face"
|
||||||
doCheck = false;
|
];
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
# Assertion error as we take the Python release into account
|
||||||
|
"test_search_prs_basic"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/mahmoud/face";
|
|
||||||
description = "A command-line interface parser and framework";
|
description = "A command-line interface parser and framework";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
A command-line interface parser and framework, friendly for
|
A command-line interface parser and framework, friendly for
|
||||||
users, full-featured for developers.
|
users, full-featured for developers.
|
||||||
'';
|
'';
|
||||||
|
homepage = "https://github.com/mahmoud/face";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
maintainers = with maintainers; [ twey ];
|
maintainers = with maintainers; [ twey ];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user