Files
nixpkgs/pkgs/development/python-modules/confuse/default.nix
T

54 lines
874 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
poetry-core,
# dependencies
pyyaml,
typing-extensions,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "confuse";
version = "2.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "beetbox";
repo = "confuse";
rev = "v${version}";
hash = "sha256-b3wwDa33fX0hkyact4v/ET0UN0PoOJ/PFaqyMRC7Q1Q=";
};
build-system = [
poetry-core
];
dependencies = [
pyyaml
typing-extensions
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "confuse" ];
meta = {
description = "Python configuration library for Python that uses YAML";
homepage = "https://github.com/beetbox/confuse";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
lovesegfault
doronbehar
];
};
}