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.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.
- Loading branch information
Showing
5 changed files
with
45 additions
and
62 deletions.
There are no files selected for viewing
46 changes: 0 additions & 46 deletions
46
pkgs/development/python-modules/pysmi-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,29 +1,59 @@ | ||
{ | ||
lib, | ||
buildPythonPackage, | ||
fetchPypi, | ||
fetchFromGitHub, | ||
|
||
# build-system | ||
poetry-core, | ||
|
||
# dependencies | ||
ply, | ||
jinja2, | ||
requests, | ||
|
||
# tests | ||
pysnmp, | ||
pytestCheckHook, | ||
}: | ||
|
||
buildPythonPackage rec { | ||
version = "0.3.4"; | ||
format = "setuptools"; | ||
let self = buildPythonPackage rec { | ||
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 = self.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 ]; | ||
}; | ||
} | ||
}; | ||
in self |
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
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