blob: a83aaabfc575036b9a79dfde8fa837756915b9a3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, cryptography
, dictdiffer
, grpcio
, protobuf
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pygnmi";
version = "0.8.14";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "akarneliuk";
repo = "pygnmi";
rev = "refs/tags/v${version}";
sha256 = "sha256-ncp/OwELy/QOvGhLUZW2qTQZsckWI4CGrlEAZ20RtQI=";
};
propagatedBuildInputs = [
cryptography
dictdiffer
grpcio
protobuf
];
# almost all tests fail with:
# TypeError: expected string or bytes-like object
doCheck = false;
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"pygnmi"
];
meta = with lib; {
description = "Pure Python gNMI client to manage network functions and collect telemetry";
mainProgram = "pygnmicli";
homepage = "https://github.com/akarneliuk/pygnmi";
changelog = "https://github.com/akarneliuk/pygnmi/releases/tag/v${version}";
license = licenses.bsd3;
maintainers = with maintainers; [ ];
};
}
|