python310Packages.typed-settings: Fix build

This commit is contained in:
Jonas Heinrich 2022-08-18 15:12:22 +02:00
parent 02eec1df30
commit eb418053b2

View File

@ -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";