3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #237571 from SuperSandro2000/pygnmi

python310.pkgs.pygnmi: init at 0.8.12
This commit is contained in:
asymmetric 2023-06-14 10:36:49 +02:00 committed by GitHub
commit 6a36d58d25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 48 additions and 0 deletions

View file

@ -0,0 +1,46 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, cryptography
, dictdiffer
, grpcio
, protobuf
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pygnmi";
version = "0.8.12";
format = "setuptools";
src = fetchFromGitHub {
owner = "akarneliuk";
repo = "pygnmi";
rev = "v${version}";
sha256 = "sha256-5dAjN/HDFKQmJIjhergBjSmHQKhBxqy/Jneh1pLCHrw=";
};
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";
homepage = "https://github.com/akarneliuk/pygnmi";
license = licenses.bsd3;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}

View file

@ -7713,6 +7713,8 @@ self: super: with self; {
pygments-style-github = callPackage ../development/python-modules/pygments-style-github { };
pygnmi = callPackage ../development/python-modules/pygnmi { };
pygti = callPackage ../development/python-modules/pygti { };
pyheos = callPackage ../development/python-modules/pyheos { };