From d9c4b673b6b64da50e7ce3087c8a7c9bd12bf89a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 19 Jul 2023 15:08:45 +0200 Subject: [PATCH] python310Packages.jsonschema: run tests with pytest pytest has less dependencies and better integration like disabling tests is super easy --- pkgs/development/python-modules/jsonschema/default.nix | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/jsonschema/default.nix b/pkgs/development/python-modules/jsonschema/default.nix index 133822275601..a23e3a5b931c 100644 --- a/pkgs/development/python-modules/jsonschema/default.nix +++ b/pkgs/development/python-modules/jsonschema/default.nix @@ -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" ];