58 lines
1.1 KiB
Nix
58 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
cython,
|
|
fetchFromGitHub,
|
|
poetry-core,
|
|
propcache,
|
|
pytest-asyncio,
|
|
pytest-codspeed,
|
|
pytest-cov-stub,
|
|
pytestCheckHook,
|
|
pyyaml,
|
|
setuptools,
|
|
voluptuous,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "annotatedyaml";
|
|
version = "0.4.5";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "home-assistant-libs";
|
|
repo = "annotatedyaml";
|
|
tag = "v${version}";
|
|
hash = "sha256-AmgM5KF8O8/rkR/9PmTzcyQaSlEDcYBDDRq5ujwANR0=";
|
|
};
|
|
|
|
build-system = [
|
|
cython
|
|
poetry-core
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [
|
|
propcache
|
|
pyyaml
|
|
voluptuous
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytest-codspeed
|
|
pytest-cov-stub
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "annotatedyaml" ];
|
|
|
|
meta = {
|
|
description = "Annotated YAML that supports secrets for Python";
|
|
homepage = "https://github.com/home-assistant-libs/annotatedyaml";
|
|
changelog = "https://github.com/home-assistant-libs/annotatedyaml/blob/${src.rev}/CHANGELOG.md";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|