2025-01-16 23:41:47 +00:00

38 lines
839 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pyyaml,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pyaml-env";
version = "1.2.2";
pyproject = true;
src = fetchFromGitHub {
owner = "mkaranasou";
repo = "pyaml_env";
tag = "v${version}";
hash = "sha256-Mp5Zn2JA6j/OTkPCRggNdqdWkrUYyYHMVK6hy/EI0I8=";
};
build-system = [ setuptools ];
dependencies = [ pyyaml ];
pythonImportsCheck = [ "pyaml_env" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
description = "Parse YAML configuration with environment variables in Python";
homepage = "https://github.com/mkaranasou/pyaml_env";
changelog = "https://github.com/mkaranasou/pyaml_env/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ natsukium ];
};
}