Files
nixpkgs/pkgs/development/python-modules/yangson/default.nix
2025-06-22 22:38:34 +00:00

45 lines
801 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
elementpath,
pyyaml,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "yangson";
version = "1.6.3";
pyproject = true;
src = fetchFromGitHub {
owner = "CZ-NIC";
repo = "yangson";
tag = version;
hash = "sha256-WOeSGGOd5+g+8dSyeml+mdehEjaSHtUkNSdkGl4xSao=";
};
build-system = [ poetry-core ];
dependencies = [
elementpath
pyyaml
];
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 = [ ];
};
}