2021-01-05 17:05:55 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, enum34
|
2021-07-04 02:40:35 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, flit-core
|
2021-01-05 17:05:55 +00:00
|
|
|
, isPy27
|
|
|
|
, lib
|
|
|
|
, pathlib
|
|
|
|
, pyyaml
|
2021-07-04 02:40:35 +00:00
|
|
|
, pytestCheckHook
|
2021-01-05 17:05:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "confuse";
|
2021-07-04 02:40:35 +00:00
|
|
|
version = "1.5.0";
|
|
|
|
format = "flit";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
2021-07-04 02:40:35 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "beetbox";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1kvilxhjifvz6ra64jadf9jiwphrah5rcb9ryq0v7w1dywgn4qp7";
|
2021-01-05 17:05:55 +00:00
|
|
|
};
|
|
|
|
|
2021-07-04 02:40:35 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
flit-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyyaml
|
|
|
|
] ++ lib.optionals isPy27 [
|
|
|
|
enum34
|
|
|
|
pathlib
|
|
|
|
] ;
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "confuse" ];
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-07-04 02:40:35 +00:00
|
|
|
description = "Python configuration library for Python that uses YAML";
|
2021-01-05 17:05:55 +00:00
|
|
|
homepage = "https://github.com/beetbox/confuse";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ lovesegfault ];
|
|
|
|
};
|
|
|
|
}
|