587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
51 lines
871 B
Nix
51 lines
871 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, elementpath
|
|
, pyyaml
|
|
, setuptools
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "yangson";
|
|
version = "1.5.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "CZ-NIC";
|
|
repo = "yangson";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-c/UWyfJdVz6wSluL1Ej9cSV3EpDUTkP0GTeHPYfAduE=";
|
|
};
|
|
|
|
build-system = [
|
|
poetry-core
|
|
];
|
|
|
|
dependencies = [
|
|
elementpath
|
|
pyyaml
|
|
setuptools
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"yangson"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library for working with data modelled in YANG";
|
|
mainProgram = "yangson";
|
|
homepage = "https://github.com/CZ-NIC/yangson";
|
|
license = with licenses; [
|
|
gpl3Plus
|
|
lgpl3Plus
|
|
];
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|