Merge pull request #187282 from onny/typed-settings

python310Packages.typed-settings: Fix build
This commit is contained in:
Robert Scott 2022-08-18 22:45:44 +01:00 committed by GitHub
commit a1ac828b60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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