depot/third_party/nixpkgs/pkgs/development/python-modules/pysnmplib/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

48 lines
892 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pycryptodomex
, pysnmp-pyasn1
, pysnmp-pysmi
, pythonOlder
}:
buildPythonPackage rec {
pname = "pysnmplib";
version = "5.0.17";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "pysnmp";
repo = "pysnmp";
rev = "v${version}";
hash = "sha256-RG8EJmNDXRozlFx76c7p4wILwkatHg/eAhVojp807uQ=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
pysnmp-pysmi
pysnmp-pyasn1
pycryptodomex
];
# Module has no test, examples are used for testing
doCheck = false;
pythonImportsCheck = [
"pysnmp"
];
meta = with lib; {
description = "Implementation of v1/v2c/v3 SNMP engine";
homepage = "https://github.com/pysnmp/pysnmp";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}