python3Packages.pyct: switch to pytestCheckHook

conduit-nginx
Fabian Affolter 2021-10-22 11:41:46 +02:00
parent 728fa553e2
commit 82407152f5
1 changed files with 12 additions and 8 deletions

View File

@ -3,9 +3,9 @@
, fetchPypi , fetchPypi
, isPy27 , isPy27
, param , param
, pytestCheckHook
, pyyaml , pyyaml
, requests , requests
, pytest
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -17,22 +17,26 @@ buildPythonPackage rec {
sha256 = "23d7525b5a1567535c093aea4b9c33809415aa5f018dd77f6eb738b1226df6f7"; sha256 = "23d7525b5a1567535c093aea4b9c33809415aa5f018dd77f6eb738b1226df6f7";
}; };
doCheck = !isPy27;
checkInputs = [ pytest ];
propagatedBuildInputs = [ propagatedBuildInputs = [
param param
pyyaml pyyaml
requests requests
]; ];
checkPhase = '' checkInputs = [
pytest pytestCheckHook
''; ];
doCheck = !isPy27;
pythonImportsCheck = [
"pyct"
];
meta = with lib; { meta = with lib; {
description = "Cli for python common tasks for users"; description = "ClI for Python common tasks for users";
homepage = "https://github.com/pyviz/pyct"; homepage = "https://github.com/pyviz/pyct";
license = licenses.bsd3; license = licenses.bsd3;
maintainers = [ maintainers.costrouc ]; maintainers = with maintainers; [ costrouc ];
}; };
} }