depot/third_party/nixpkgs/pkgs/development/python-modules/pysnmplib/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

46 lines
977 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pycryptodomex,
pysnmp-pyasn1,
pysnmp-pysmi,
pythonOlder,
}:
buildPythonPackage rec {
pname = "pysnmplib";
version = "5.0.24";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "pysnmp";
repo = "pysnmp";
rev = "refs/tags/v${version}";
hash = "sha256-AtQqXiy943cYhHDsyz9Yk5uA4xK7Q4p21CT3X3zYzrQ=";
};
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 ];
};
}