mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 04:46:43 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{ 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; [ ];
|
|
};
|
|
}
|