forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python312Packages.pysnmp: 4.4.2 -> 6.2.5
https://github.com/lextudio/pysnmp/blob/v6.2.5/CHANGES.rst etingof/pysnmp#429 Promotes the lextudio fork to the the primary pysnmp package.
- Loading branch information
Showing
6 changed files
with
67 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 0 additions & 72 deletions
72
pkgs/development/python-modules/pysnmp-lextudio/default.nix
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,74 @@ | ||
{ | ||
lib, | ||
buildPythonPackage, | ||
fetchPypi, | ||
fetchFromGitHub, | ||
|
||
# build-system | ||
poetry-core, | ||
|
||
# dependencies | ||
pyasn1, | ||
pycryptodomex, | ||
pysmi, | ||
pysnmpcrypto, | ||
|
||
# tests | ||
pytestCheckHook, | ||
pytest-asyncio, | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "pysnmp"; | ||
version = "4.4.12"; | ||
format = "setuptools"; | ||
version = "6.2.5"; | ||
pyproject = true; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
sha256 = "1acbfvpbr45i137s00mbhh21p71ywjfw3r8z0ybcmjjqz7rbwg8c"; | ||
src = fetchFromGitHub { | ||
owner = "lextudio"; | ||
repo = "pysnmp"; | ||
rev = "refs/tags/v${version}"; | ||
hash = "sha256-EGMUTUN95wykU756GJSiXwr8Hi3kyaLPfqhuDgvhbBE="; | ||
}; | ||
|
||
patches = [ ./setup.py-Fix-the-setuptools-version-check.patch ]; | ||
pythonRemoveDeps = [ "pytest-cov" ]; | ||
|
||
# NameError: name 'mibBuilder' is not defined | ||
doCheck = false; | ||
build-system = [ poetry-core ]; | ||
|
||
propagatedBuildInputs = [ | ||
dependencies = [ | ||
pyasn1 | ||
pycryptodomex | ||
pysmi | ||
pysnmpcrypto | ||
]; | ||
|
||
nativeCheckInputs = [ | ||
pytestCheckHook | ||
pytest-asyncio | ||
]; | ||
|
||
disabledTests = [ | ||
# Temporary failure in name resolution | ||
"test_custom_asn1_mib_search_path" | ||
"test_send_notification" | ||
"test_send_trap" | ||
"test_send_v3_inform_notification" | ||
"test_send_v3_inform_sync" | ||
"test_usm_sha_aes128" | ||
"test_v1_get" | ||
"test_v1_next" | ||
"test_v1_set" | ||
"test_v2c_bulk" | ||
# pysnmp.smi.error.MibNotFoundError | ||
"test_send_v3_trap_notification" | ||
"test_addAsn1MibSource" | ||
"test_v1_walk" | ||
"test_v2_walk" | ||
]; | ||
|
||
pythonImportsCheck = [ "pysnmp" ]; | ||
|
||
meta = with lib; { | ||
homepage = "http://snmplabs.com/pysnmp/index.html"; | ||
description = "Pure-Python SNMPv1/v2c/v3 library"; | ||
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; [ | ||
primeos | ||
koral | ||
]; | ||
maintainers = with maintainers; [ hexa ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters