1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 elementpath,
7 pyyaml,
8 setuptools,
9 pytestCheckHook,
10}:
11
12buildPythonPackage rec {
13 pname = "yangson";
14 version = "1.5.2";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "CZ-NIC";
19 repo = "yangson";
20 rev = "refs/tags/${version}";
21 hash = "sha256-c/UWyfJdVz6wSluL1Ej9cSV3EpDUTkP0GTeHPYfAduE=";
22 };
23
24 build-system = [ poetry-core ];
25
26 dependencies = [
27 elementpath
28 pyyaml
29 setuptools
30 ];
31
32 nativeCheckInputs = [ pytestCheckHook ];
33
34 pythonImportsCheck = [ "yangson" ];
35
36 meta = with lib; {
37 description = "Library for working with data modelled in YANG";
38 mainProgram = "yangson";
39 homepage = "https://github.com/CZ-NIC/yangson";
40 license = with licenses; [
41 gpl3Plus
42 lgpl3Plus
43 ];
44 maintainers = with maintainers; [ ];
45 };
46}