From eb418053b23bd504ef80c55186e50dc974bd45a5 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Thu, 18 Aug 2022 15:12:22 +0200 Subject: [PATCH] python310Packages.typed-settings: Fix build --- .../python-modules/typed-settings/default.nix | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) 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";