at 25.11-pre 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 jinja2, 6 ply, 7 poetry-core, 8 pysmi, 9 pysnmp, 10 pytestCheckHook, 11 pythonOlder, 12 requests, 13}: 14 15buildPythonPackage rec { 16 version = "1.5.9"; 17 pname = "pysmi"; 18 pyproject = true; 19 20 disabled = pythonOlder "3.8"; 21 22 src = fetchFromGitHub { 23 owner = "lextudio"; 24 repo = "pysmi"; 25 tag = "v${version}"; 26 hash = "sha256-cAeLoDwAf56aWWKKUjOB0fpy7C3gBJchJJtQ6986thc="; 27 }; 28 29 build-system = [ poetry-core ]; 30 31 dependencies = [ 32 ply 33 jinja2 34 requests 35 ]; 36 37 nativeCheckInputs = [ 38 pysnmp 39 pytestCheckHook 40 ]; 41 42 # Tests require pysnmp, which in turn requires pysmi => infinite recursion 43 doCheck = false; 44 45 pythonImportsCheck = [ "pysmi" ]; 46 47 passthru.tests.pytest = pysmi.overridePythonAttrs { doCheck = true; }; 48 49 meta = with lib; { 50 description = "SNMP MIB parser"; 51 homepage = "https://github.com/lextudio/pysmi"; 52 changelog = "https://github.com/lextudio/pysmi/blob/v${version}/CHANGES.rst"; 53 license = licenses.bsd2; 54 maintainers = with maintainers; [ fab ]; 55 }; 56}