python3Packages.pygogo: update checkPhase
This commit is contained in:
parent
a5736f1f8a
commit
8ea82df76d
1 changed files with 23 additions and 5 deletions
|
@ -10,6 +10,7 @@
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pygogo";
|
pname = "pygogo";
|
||||||
version = "0.13.2";
|
version = "0.13.2";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
|
@ -20,14 +21,31 @@ buildPythonPackage rec {
|
||||||
sha256 = "19rdf4sjrm5lp1vq1bki21a9lrkzz8sgrfwgjdkq4sgy90hn1jn9";
|
sha256 = "19rdf4sjrm5lp1vq1bki21a9lrkzz8sgrfwgjdkq4sgy90hn1jn9";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkutils ];
|
nativeBuildInputs = [
|
||||||
|
pkutils
|
||||||
|
];
|
||||||
|
|
||||||
checkInputs = [ nose ];
|
checkInputs = [
|
||||||
checkPhase = "nosetests";
|
nose
|
||||||
pythonImportsCheck = [ "pygogo" ];
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace dev-requirements.txt \
|
||||||
|
--replace "pkutils>=1.0.0,<2.0.0" "pkutils>=1.0.0"
|
||||||
|
'';
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
runHook preCheck
|
||||||
|
nosetests
|
||||||
|
runHook postCheck
|
||||||
|
'';
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"pygogo"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A Python logging library with super powers";
|
description = "Python logging library";
|
||||||
homepage = "https://github.com/reubano/pygogo/";
|
homepage = "https://github.com/reubano/pygogo/";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ drewrisinger ];
|
maintainers = with maintainers; [ drewrisinger ];
|
||||||
|
|
Loading…
Reference in a new issue