1{
2 lib,
3 buildPythonPackage,
4 cython,
5 fetchFromGitHub,
6 poetry-core,
7 propcache,
8 pytest-asyncio,
9 pytest-codspeed,
10 pytest-cov-stub,
11 pytestCheckHook,
12 pyyaml,
13 setuptools,
14 voluptuous,
15}:
16
17buildPythonPackage rec {
18 pname = "annotatedyaml";
19 version = "1.0.0";
20 pyproject = true;
21
22 src = fetchFromGitHub {
23 owner = "home-assistant-libs";
24 repo = "annotatedyaml";
25 tag = "v${version}";
26 hash = "sha256-bVXhKm69A5FIXYY2yq7jXPIK7lSCQD20a3oX1GdqOLY=";
27 };
28
29 build-system = [
30 cython
31 poetry-core
32 setuptools
33 ];
34
35 dependencies = [
36 propcache
37 pyyaml
38 voluptuous
39 ];
40
41 nativeCheckInputs = [
42 pytest-asyncio
43 pytest-codspeed
44 pytest-cov-stub
45 pytestCheckHook
46 ];
47
48 pythonImportsCheck = [ "annotatedyaml" ];
49
50 meta = {
51 description = "Annotated YAML that supports secrets for Python";
52 homepage = "https://github.com/home-assistant-libs/annotatedyaml";
53 changelog = "https://github.com/home-assistant-libs/annotatedyaml/blob/${src.tag}/CHANGELOG.md";
54 license = lib.licenses.asl20;
55 maintainers = with lib.maintainers; [ fab ];
56 };
57}