python3Packages.canmatrix: switch to pytestCheckHook
This commit is contained in:
parent
d9b1f25d5d
commit
9e599dd814
@ -13,7 +13,7 @@
|
|||||||
, xlrd
|
, xlrd
|
||||||
, XlsxWriter
|
, XlsxWriter
|
||||||
, pyyaml
|
, pyyaml
|
||||||
, pytest
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -48,14 +48,11 @@ buildPythonPackage rec {
|
|||||||
--replace "version = versioneer.get_version()" "version = \"${version}\""
|
--replace "version = versioneer.get_version()" "version = \"${version}\""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [ pytestCheckHook ];
|
||||||
pytest
|
|
||||||
];
|
|
||||||
|
|
||||||
# long_envvar_name_imports requires stable key value pair ordering
|
# long_envvar_name_imports requires stable key value pair ordering
|
||||||
checkPhase = ''
|
pytestFlagsArray = [ "-s src/canmatrix" ];
|
||||||
pytest -s src/canmatrix -k 'not long_envvar_name_imports'
|
disabledTests = [ "long_envvar_name_imports" ];
|
||||||
'';
|
pythonImportsCheck = [ "canmatrix" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/ebroecker/canmatrix";
|
homepage = "https://github.com/ebroecker/canmatrix";
|
||||||
|
Loading…
Reference in New Issue
Block a user