My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/typed-settings/default.nix

58 lines
927 B

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, setuptoolsBuildHook
, attrs
, cattrs
, toml
, pytestCheckHook
, click
}:
buildPythonPackage rec {
pname = "typed-settings";
version = "1.0.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-xrIJgQiAaSXcANMnyXMnqEkLNUP+VyxjRoi9DkX+SLA=";
};
nativeBuildInputs = [
setuptoolsBuildHook
];
propagatedBuildInputs = [
attrs
cattrs
toml
];
preCheck = ''
pushd tests
'';
checkInputs = [
click
pytestCheckHook
];
disabledTests = [
# mismatches in click help output
"test_help"
];
postCheck = ''
popd
'';
meta = {
description = "Typed settings based on attrs classes";
homepage = "https://gitlab.com/sscherfke/typed-settings";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fridh ];
};
}