python310Packages.jsonschema: run tests with pytest

pytest has less dependencies and better integration like disabling tests
is super easy
This commit is contained in:
Sandro Jäckel
2023-07-28 12:13:28 +02:00
committed by Martin Weinelt
parent 1148d2369b
commit d9c4b673b6
@@ -8,10 +8,10 @@
, importlib-resources
, jsonschema-specifications
, pkgutil-resolve-name
, pytestCheckHook
, pythonOlder
, referencing
, rpds-py
, twisted
# optionals
, fqdn
@@ -81,14 +81,9 @@ buildPythonPackage rec {
};
nativeCheckInputs = [
twisted
pytestCheckHook
];
checkPhase = ''
export JSON_SCHEMA_TEST_SUITE=json
trial jsonschema
'';
pythonImportsCheck = [
"jsonschema"
];