From 5fb2b84a1f42bd21e601a11e62dff40e37ef18f4 Mon Sep 17 00:00:00 2001 From: Pyrox Date: Sun, 28 Jul 2024 23:34:19 -0400 Subject: [PATCH] python312Packages.envs: Drop nose dependency --- .../python-modules/envs/default.nix | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/pkgs/development/python-modules/envs/default.nix b/pkgs/development/python-modules/envs/default.nix index c64f607795ba..7656c5b56ec8 100644 --- a/pkgs/development/python-modules/envs/default.nix +++ b/pkgs/development/python-modules/envs/default.nix @@ -4,8 +4,7 @@ click, fetchPypi, jinja2, - mock, - nose, + pytestCheckHook, poetry-core, pythonOlder, terminaltables, @@ -31,21 +30,11 @@ buildPythonPackage rec { terminaltables ]; - # test rely on nose - doCheck = pythonOlder "3.12"; + nativeCheckInputs = [ pytestCheckHook ]; - nativeCheckInputs = [ - mock - nose - ]; + pytestFlagsArray = [ "envs/tests.py" ]; - checkPhase = '' - runHook preCheck - - nosetests --with-isolation - - runHook postCheck - ''; + disabledTests = [ "test_list_envs" ]; pythonImportsCheck = [ "envs" ];