Merge pull request #120698 from fabaff/tests-iso8601
python3Packages.iso8601: switch to pytestCheckHook
This commit is contained in:
commit
80d6d85def
@ -1,7 +1,7 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, pytest
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -13,15 +13,18 @@ buildPythonPackage rec {
|
|||||||
sha256 = "8aafd56fa0290496c5edbb13c311f78fa3a241f0853540da09d9363eae3ebd79";
|
sha256 = "8aafd56fa0290496c5edbb13c311f78fa3a241f0853540da09d9363eae3ebd79";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ pytest ];
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
pytestFlagsArray = [ "iso8601" ];
|
||||||
py.test iso8601
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
pythonImportsCheck = [ "iso8601" ];
|
||||||
homepage = "https://bitbucket.org/micktwomey/pyiso8601/";
|
|
||||||
|
meta = with lib; {
|
||||||
description = "Simple module to parse ISO 8601 dates";
|
description = "Simple module to parse ISO 8601 dates";
|
||||||
maintainers = with lib.maintainers; [ phreedom ];
|
homepage = "https://pyiso8601.readthedocs.io/";
|
||||||
|
license = with licenses; [ mit ];
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user