nixpkgs-suyu/pkgs/development/python-modules/confuse/default.nix

48 lines
835 B
Nix
Raw Normal View History

2020-06-29 22:54:08 +02:00
{ buildPythonPackage
, enum34
2021-07-03 09:51:41 +02:00
, fetchFromGitHub
, flit-core
2020-06-29 22:54:08 +02:00
, isPy27
, lib
, pathlib
, pyyaml
2021-07-03 09:51:41 +02:00
, pytestCheckHook
2020-06-29 22:54:08 +02:00
}:
buildPythonPackage rec {
pname = "confuse";
version = "1.5.0";
2021-07-03 09:51:41 +02:00
format = "flit";
2020-06-29 22:54:08 +02:00
2021-07-03 09:51:41 +02:00
src = fetchFromGitHub {
owner = "beetbox";
repo = pname;
rev = "v${version}";
sha256 = "1kvilxhjifvz6ra64jadf9jiwphrah5rcb9ryq0v7w1dywgn4qp7";
2020-06-29 22:54:08 +02:00
};
2021-07-03 09:51:41 +02:00
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [
pyyaml
] ++ lib.optionals isPy27 [
enum34
pathlib
] ;
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "confuse" ];
2020-06-29 22:54:08 +02:00
meta = with lib; {
2021-07-03 09:51:41 +02:00
description = "Python configuration library for Python that uses YAML";
2020-06-29 22:54:08 +02:00
homepage = "https://github.com/beetbox/confuse";
license = licenses.mit;
maintainers = with maintainers; [ lovesegfault ];
};
}