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