python312Packages.pysmi: 0.3.4 -> 1.4.4

https://github.com/lextudio/pysmi/blob/v1.4.4/CHANGES.rst

Absorbs pysmi-lextudio, since the author of pysmi has passed away and
the lextudio fork has now become pysmi.
This commit is contained in:
Martin Weinelt 2024-07-18 00:42:08 +02:00 committed by Robert Schütz
parent 6225ca270c
commit d05ede7bac
5 changed files with 43 additions and 60 deletions

View File

@ -1,46 +0,0 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
jinja2,
ply,
poetry-core,
pythonOlder,
requests,
}:
buildPythonPackage rec {
pname = "pysmi-lextudio";
version = "1.4.3";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "lextudio";
repo = "pysmi";
rev = "refs/tags/v${version}";
hash = "sha256-JrWVoK7fqESUIJeprjB28iaqOEWgsTpTqUEmSZp9XDk=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
jinja2
ply
requests
];
# Circular dependency on pysnmp-lextudio
doCheck = false;
pythonImportsCheck = [ "pysmi" ];
meta = with lib; {
description = "SNMP MIB parser";
homepage = "https://github.com/lextudio/pysmi";
changelog = "https://github.com/lextudio/pysmi/blob/v${version}/CHANGES.rst";
license = licenses.bsd2;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -1,29 +1,59 @@
{
lib,
buildPythonPackage,
fetchPypi,
fetchFromGitHub,
# build-system
poetry-core,
# dependencies
ply,
jinja2,
requests,
# tests
pysmi,
pysnmp,
pytestCheckHook,
}:
buildPythonPackage rec {
version = "0.3.4";
format = "setuptools";
version = "1.4.4";
pname = "pysmi";
pyproject = true;
src = fetchPypi {
inherit pname version;
sha256 = "bd15a15020aee8376cab5be264c26330824a8b8164ed0195bd402dd59e4e8f7c";
src = fetchFromGitHub {
owner = "lextudio";
repo = "pysmi";
rev = "refs/tags/v${version}";
hash = "sha256-9ArKo1UT4g+H8Z51NZ6rHlOhyz2grAc1V8Xl+ztfYic=";
};
propagatedBuildInputs = [ ply ];
build-system = [ poetry-core ];
dependencies = [
ply
jinja2
requests
];
# Tests require pysnmp, which in turn requires pysmi => infinite recursion
doCheck = false;
nativeCheckInputs = [
pysnmp
pytestCheckHook
];
pythonImportsCheck = [ "pysmi" ];
passthru.tests.pytest = pysmi.overridePythonAttrs { doCheck = true; };
meta = with lib; {
homepage = "http://pysmi.sf.net";
description = "SNMP SMI/MIB Parser";
description = "SNMP MIB parser";
homepage = "https://github.com/lextudio/pysmi";
changelog = "https://github.com/lextudio/pysmi/blob/v${version}/CHANGES.rst";
license = licenses.bsd2;
maintainers = with maintainers; [ koral ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -8,7 +8,7 @@
# dependencies
pyasn1,
pysmi-lextudio,
pysmi,
pysnmpcrypto,
# tests
@ -32,7 +32,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
pyasn1
pysmi-lextudio
pysmi
pysnmpcrypto
];

View File

@ -469,6 +469,7 @@ mapAliases ({
pysha3 = throw "pysha3 has been removed, use safe-pysha3 instead"; # added 2023-05-20
pysmart-smartx = pysmart; # added 2021-10-22
pySmartDL = pysmartdl; # added 2023-10-11
pysmi-lextudio = pysmi; # added 2024-07-18
pysparse = throw "pysparse has been abandoned upstream."; # added 2023-02-28
pyspotify = throw "pyspotify has been removed because Spotify stopped supporting libspotify"; # added 2022-05-29
PyStemmer = pystemmer; # added 2023-02-19

View File

@ -12087,8 +12087,6 @@ self: super: with self; {
pysmi = callPackage ../development/python-modules/pysmi { };
pysmi-lextudio = callPackage ../development/python-modules/pysmi-lextudio { };
pysml = callPackage ../development/python-modules/pysml { };
pysmlight = callPackage ../development/python-modules/pysmlight { };