diff --git a/pkgs/development/python-modules/typed-settings/default.nix b/pkgs/development/python-modules/typed-settings/default.nix index 3a6ee309ff55..8d04df43efeb 100644 --- a/pkgs/development/python-modules/typed-settings/default.nix +++ b/pkgs/development/python-modules/typed-settings/default.nix @@ -8,6 +8,7 @@ , toml , pytestCheckHook , click +, click-option-group }: buildPythonPackage rec { @@ -28,26 +29,20 @@ buildPythonPackage rec { propagatedBuildInputs = [ attrs cattrs + click-option-group toml ]; - preCheck = '' - pushd tests - ''; + pytestFlagsArray = [ + "tests" + ]; checkInputs = [ click pytestCheckHook ]; - disabledTests = [ - # mismatches in click help output - "test_help" - ]; - - postCheck = '' - popd - ''; + pythonImportsCheck = [ "typed_settings" ]; meta = { description = "Typed settings based on attrs classes";