3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/confuse/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
805 B
Nix
Raw Normal View History

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