Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / yangson / default.nix
blobaea6481b6c1a304d470b4fac82e8b0375644fc77
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , poetry-core
5 , elementpath
6 , pyyaml
7 , setuptools
8 , pytestCheckHook
9 }:
11 buildPythonPackage rec {
12   pname = "yangson";
13   version = "1.5.2";
14   pyproject = true;
16   src = fetchFromGitHub {
17     owner = "CZ-NIC";
18     repo = "yangson";
19     rev = "refs/tags/${version}";
20     hash = "sha256-c/UWyfJdVz6wSluL1Ej9cSV3EpDUTkP0GTeHPYfAduE=";
21   };
23   build-system = [
24     poetry-core
25   ];
27   dependencies = [
28     elementpath
29     pyyaml
30     setuptools
31   ];
33   nativeCheckInputs = [
34     pytestCheckHook
35   ];
37   pythonImportsCheck = [
38     "yangson"
39   ];
41   meta = with lib; {
42     description = "Library for working with data modelled in YANG";
43     mainProgram = "yangson";
44     homepage = "https://github.com/CZ-NIC/yangson";
45     license = with licenses; [
46       gpl3Plus
47       lgpl3Plus
48     ];
49     maintainers = with maintainers; [ ];
50   };