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