python311Packages.pysnmp-lextudio: init at 5.0.33
A pure-Python, open source and free implementation of v1/v2c/v3 SNMP engine.
This commit is contained in:
parent
b86c5299cc
commit
45a67b4d93
71
pkgs/development/python-modules/pysnmp-lextudio/default.nix
Normal file
71
pkgs/development/python-modules/pysnmp-lextudio/default.nix
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
|
||||||
|
# build-system
|
||||||
|
, poetry-core
|
||||||
|
|
||||||
|
# dependencies
|
||||||
|
, pyasn1
|
||||||
|
, pyasyncore
|
||||||
|
, pysmi-lextudio
|
||||||
|
, pysnmpcrypto
|
||||||
|
|
||||||
|
# tests
|
||||||
|
, pytestCheckHook
|
||||||
|
, pytest-asyncio
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pysnmp-lextudio";
|
||||||
|
version = "5.0.33";
|
||||||
|
pyproject = true;
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "lextudio";
|
||||||
|
repo = "pysnmp";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-IXYpR7JnuHmcjtdCs1C+rPHS9IZ93MN/Zuw4Pu1l/4A=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
poetry-core
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
pyasn1
|
||||||
|
pyasyncore
|
||||||
|
pysmi-lextudio
|
||||||
|
pysnmpcrypto
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeCheckInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
pytest-asyncio
|
||||||
|
];
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
# Temporary failure in name resolutionc
|
||||||
|
"test_custom_asn1_mib_search_path"
|
||||||
|
"test_send_notification"
|
||||||
|
"test_send_trap"
|
||||||
|
"test_send_v3_inform_notification"
|
||||||
|
"test_usm_sha_aes128"
|
||||||
|
"test_v1_get"
|
||||||
|
"test_v1_next"
|
||||||
|
"test_v1_set"
|
||||||
|
"test_v2c_bulk"
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"pysnmp"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Python SNMP library";
|
||||||
|
homepage = "https://github.com/lextudio/pysnmp";
|
||||||
|
changelog = "https://github.com/lextudio/pysnmp/blob/${src.rev}/CHANGES.txt";
|
||||||
|
license = licenses.bsd2;
|
||||||
|
maintainers = with maintainers; [ hexa ];
|
||||||
|
};
|
||||||
|
}
|
@ -11293,6 +11293,8 @@ self: super: with self; {
|
|||||||
|
|
||||||
pysnmpcrypto = callPackage ../development/python-modules/pysnmpcrypto { };
|
pysnmpcrypto = callPackage ../development/python-modules/pysnmpcrypto { };
|
||||||
|
|
||||||
|
pysnmp-lextudio = callPackage ../development/python-modules/pysnmp-lextudio { };
|
||||||
|
|
||||||
pysnmp-pyasn1 = callPackage ../development/python-modules/pysnmp-pyasn1 { };
|
pysnmp-pyasn1 = callPackage ../development/python-modules/pysnmp-pyasn1 { };
|
||||||
|
|
||||||
pysnmp-pysmi = callPackage ../development/python-modules/pysnmp-pysmi { };
|
pysnmp-pysmi = callPackage ../development/python-modules/pysnmp-pysmi { };
|
||||||
|
Loading…
Reference in New Issue
Block a user