blob: 04c8008787f6e3bd25c08ee18aafe79de4916a77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
flit-core,
jinja2,
ply,
pysmi,
pysnmp,
pytestCheckHook,
requests,
}:
buildPythonPackage rec {
version = "1.6.2";
pname = "pysmi";
pyproject = true;
src = fetchFromGitHub {
owner = "lextudio";
repo = "pysmi";
tag = "v${version}";
hash = "sha256-GyG3J6qntEIszXrm1t623+x1cYbhJLbTEQl6N2h2LA0=";
};
build-system = [ flit-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 = {
description = "SNMP MIB parser";
homepage = "https://github.com/lextudio/pysmi";
changelog = "https://github.com/lextudio/pysmi/blob/v${version}/CHANGES.rst";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ fab ];
};
}
|