41 lines
832 B
Nix
41 lines
832 B
Nix
{
|
|
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";
|
|
};
|
|
}
|