1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 pydantic,
7 pytestCheckHook,
8 pyyaml,
9}:
10
11buildPythonPackage rec {
12 pname = "hier-config";
13 version = "3.2.2";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "netdevops";
18 repo = "hier_config";
19 tag = "v${version}";
20 hash = "sha256-3xSxzdIxoQgJtA3CX141jP2Zl2j8Dwfplv4JYpHpCdQ=";
21 };
22
23 build-system = [ poetry-core ];
24
25 dependencies = [ pydantic ];
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 pyyaml
30 ];
31
32 pythonImportsCheck = [ "hier_config" ];
33
34 meta = {
35 description = "Module to handle hierarchical configurations";
36 homepage = "https://github.com/netdevops/hier_config";
37 changelog = "https://github.com/netdevops/hier_config/releases/tag/v${src.tag}";
38 license = lib.licenses.mit;
39 maintainers = with lib.maintainers; [ fab ];
40 };
41}