2021-05-20 23:08:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2024-04-21 15:54:59 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, poetry-core
|
2023-10-09 19:29:22 +00:00
|
|
|
, elementpath
|
2024-04-21 15:54:59 +00:00
|
|
|
, pyyaml
|
|
|
|
, setuptools
|
2021-05-20 23:08:51 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "yangson";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.5.2";
|
|
|
|
pyproject = true;
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CZ-NIC";
|
|
|
|
repo = "yangson";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-c/UWyfJdVz6wSluL1Ej9cSV3EpDUTkP0GTeHPYfAduE=";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [
|
|
|
|
poetry-core
|
2021-05-20 23:08:51 +00:00
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2023-10-09 19:29:22 +00:00
|
|
|
elementpath
|
2024-04-21 15:54:59 +00:00
|
|
|
pyyaml
|
|
|
|
setuptools
|
2021-05-20 23:08:51 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-05-20 23:08:51 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"yangson"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Library for working with data modelled in YANG";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "yangson";
|
2021-05-20 23:08:51 +00:00
|
|
|
homepage = "https://github.com/CZ-NIC/yangson";
|
|
|
|
license = with licenses; [
|
|
|
|
gpl3Plus
|
|
|
|
lgpl3Plus
|
|
|
|
];
|
2024-01-13 08:15:51 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
}
|