mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
79e27211a6
Diff: https://github.com/lextudio/pysmi/compare/refs/tags/v1.5.0...v1.5.4 Changelog: https://github.com/lextudio/pysmi/blob/v1.5.4/CHANGES.rst
57 lines
1.1 KiB
Nix
57 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
jinja2,
|
|
ply,
|
|
poetry-core,
|
|
pysmi,
|
|
pysnmp,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
requests,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "1.5.4";
|
|
pname = "pysmi";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lextudio";
|
|
repo = "pysmi";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-QKxUV2QTaGkCQmWTS8GBeaXKsKTIsrDVZFwidTqLdh0=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
ply
|
|
jinja2
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pysnmp
|
|
pytestCheckHook
|
|
];
|
|
|
|
# Tests require pysnmp, which in turn requires pysmi => infinite recursion
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "pysmi" ];
|
|
|
|
passthru.tests.pytest = pysmi.overridePythonAttrs { doCheck = true; };
|
|
|
|
meta = with lib; {
|
|
description = "SNMP MIB parser";
|
|
homepage = "https://github.com/lextudio/pysmi";
|
|
changelog = "https://github.com/lextudio/pysmi/blob/v${version}/CHANGES.rst";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|