Compare commits

..

1 commit

Author SHA1 Message Date
0ac53eec93
feat(pyang): init 2025-02-02 22:07:24 +01:00

41
pkgs/pyang.nix Normal file
View file

@ -0,0 +1,41 @@
{
lib,
python3,
fetchFromGitHub,
}:
python3.pkgs.buildPythonApplication rec {
pname = "pyang";
version = "2.6.1";
pyproject = true;
src = fetchFromGitHub {
owner = "mbj4668";
repo = "pyang";
rev = "pyang-${version}";
hash = "sha256-sZokdBegfkDUXuf9lHIZ7AJzjomxSRpwyX+myquQy3Y=";
};
build-system = [
python3.pkgs.setuptools
python3.pkgs.wheel
];
dependencies = with python3.pkgs; [
lxml
setuptools
];
pythonImportsCheck = [
"pyang"
];
meta = {
description = "An extensible YANG validator and converter in python";
homepage = "https://github.com/mbj4668/pyang";
changelog = "https://github.com/mbj4668/pyang/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.isc;
maintainers = with lib.maintainers; [ ];
mainProgram = "pyang";
};
}