45 lines
748 B
Nix
45 lines
748 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, setuptools-scm
|
|
, pyxb
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "yangson";
|
|
version = "1.4.16";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-P447JnQ8zhalcg9k8prW1QQE3h5PqY155hFtvLvBVSI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
pyxb
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"yangson"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library for working with data modelled in YANG";
|
|
homepage = "https://github.com/CZ-NIC/yangson";
|
|
license = with licenses; [
|
|
gpl3Plus
|
|
lgpl3Plus
|
|
];
|
|
maintainers = with maintainers; [ hexa ];
|
|
};
|
|
}
|