2022-01-15 10:12:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-07-03 08:51:41 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, flit-core
|
2020-06-29 21:54:08 +01:00
|
|
|
, pyyaml
|
2021-07-03 08:51:41 +01:00
|
|
|
, pytestCheckHook
|
2022-01-15 10:12:52 +00:00
|
|
|
, pythonOlder
|
2020-06-29 21:54:08 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "confuse";
|
2022-01-15 10:25:25 +00:00
|
|
|
version = "1.7.0";
|
2021-07-03 08:51:41 +01:00
|
|
|
format = "flit";
|
2020-06-29 21:54:08 +01:00
|
|
|
|
2022-01-15 10:12:52 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2021-07-03 08:51:41 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "beetbox";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-01-15 10:25:25 +00:00
|
|
|
sha256 = "sha256-zdH5DNXnuAfYTuaG9EIKiXL2EbLSfzYjPSkC3G06bU8=";
|
2020-06-29 21:54:08 +01:00
|
|
|
};
|
|
|
|
|
2021-07-03 08:51:41 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
flit-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyyaml
|
2022-01-15 10:12:52 +00:00
|
|
|
];
|
2021-07-03 08:51:41 +01:00
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-01-15 10:12:52 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"confuse"
|
|
|
|
];
|
2020-06-29 21:54:08 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-07-03 08:51:41 +01:00
|
|
|
description = "Python configuration library for Python that uses YAML";
|
2020-06-29 21:54:08 +01:00
|
|
|
homepage = "https://github.com/beetbox/confuse";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ lovesegfault ];
|
|
|
|
};
|
|
|
|
}
|