depot/third_party/nixpkgs/pkgs/development/python-modules/confuse/default.nix
Default email b96e6f4393 Project import generated by Copybara.
GitOrigin-RevId: 20887e4bbfdae3aed6bfa1f53ddf138ee325515e
2021-07-03 21:40:35 -05:00

47 lines
835 B
Nix

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