depot/third_party/nixpkgs/pkgs/development/python-modules/pysnmplib/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

49 lines
979 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pycryptodomex
, pysnmp-pyasn1
, pysnmp-pysmi
, pythonOlder
}:
buildPythonPackage rec {
pname = "pysnmplib";
version = "5.0.23";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "pysnmp";
repo = "pysnmp";
rev = "refs/tags/v${version}";
hash = "sha256-1h87fqaWMJN25SOD0xOkP3PFm1GPK99sT0o6ILCFVUI=";
};
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";
changelog = "https://github.com/pysnmp/pysnmp/releases/tag/v${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}