treewide: migrate to pythonPackages.unittestCheckHook

This commit is contained in:
Winter
2022-08-06 12:32:04 -04:00
parent e8fbb38a51
commit 19adc3341c
82 changed files with 278 additions and 417 deletions

View File

@@ -14,6 +14,7 @@
, toml
, types-setuptools
, types-toml
, unittestCheckHook
, xmldiff
}:
@@ -47,6 +48,7 @@ buildPythonPackage rec {
];
checkInputs = [
unittestCheckHook
jsonschema
lxml
xmldiff
@@ -56,13 +58,9 @@ buildPythonPackage rec {
"cyclonedx"
];
checkPhase = ''
runHook preCheck
# Tests require network access
rm tests/test_output_json.py
${python.interpreter} -m unittest discover -s tests -v
runHook postCheck
'';
preCheck = ''
rm tests/test_output_json.py
'';
meta = with lib; {
description = "Python library for generating CycloneDX SBOMs";