Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pygnmi / default.nix
bloba83aaabfc575036b9a79dfde8fa837756915b9a3
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , cryptography
5 , dictdiffer
6 , grpcio
7 , protobuf
8 , pytestCheckHook
9 , pythonOlder
12 buildPythonPackage rec {
13   pname = "pygnmi";
14   version = "0.8.14";
15   format = "setuptools";
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = "akarneliuk";
21     repo = "pygnmi";
22     rev = "refs/tags/v${version}";
23     sha256 = "sha256-ncp/OwELy/QOvGhLUZW2qTQZsckWI4CGrlEAZ20RtQI=";
24   };
26   propagatedBuildInputs = [
27     cryptography
28     dictdiffer
29     grpcio
30     protobuf
31   ];
33   # almost all tests fail with:
34   # TypeError: expected string or bytes-like object
35   doCheck = false;
37   nativeCheckInputs = [
38     pytestCheckHook
39   ];
41   pythonImportsCheck = [
42     "pygnmi"
43   ];
45   meta = with lib; {
46     description = "Pure Python gNMI client to manage network functions and collect telemetry";
47     mainProgram = "pygnmicli";
48     homepage = "https://github.com/akarneliuk/pygnmi";
49     changelog = "https://github.com/akarneliuk/pygnmi/releases/tag/v${version}";
50     license = licenses.bsd3;
51     maintainers = with maintainers; [ ];
52   };