biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / pysnmp-pysmi / default.nix
blob4dbf57dcc6400acd052f6c466e6ee829c524992a
2   lib,
3   buildPythonPackage,
4   pythonOlder,
5   fetchFromGitHub,
6   ply,
7   poetry-core,
8   requests,
9 }:
11 buildPythonPackage rec {
12   pname = "pysnmp-pysmi";
13   version = "1.1.12";
14   pyproject = true;
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "pysnmp";
20     repo = "pysmi";
21     rev = "refs/tags/v${version}";
22     hash = "sha256-dK02y8HXhwq1W6NOYsycjTpIMxoQY4qNT4n8TEycmWM=";
23   };
25   build-system = [ poetry-core ];
27   dependencies = [
28     ply
29     requests
30   ];
32   # Circular dependency with pysnmplib
33   doCheck = false;
35   pythonImportsCheck = [ "pysmi" ];
37   meta = with lib; {
38     description = "SNMP MIB parser";
39     homepage = "https://github.com/pysnmp/pysmi";
40     changelog = "https://github.com/pysnmp/pysmi/releases/tag/v${version}";
41     license = licenses.bsd2;
42     maintainers = with maintainers; [ fab ];
43   };