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