From 3bfca496c5bc7fb904263cc65165d30e7844cb7b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 7 Sep 2024 18:44:16 +0200 Subject: [PATCH 1/2] python312Packages.pysmi: 1.4.4 -> 1.5.0 Diff: https://github.com/lextudio/pysmi/compare/refs/tags/v1.4.4...1.5.0 Changelog: https://github.com/lextudio/pysmi/blob/v1.5.0/CHANGES.rst --- pkgs/development/python-modules/pysmi/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pysmi/default.nix b/pkgs/development/python-modules/pysmi/default.nix index b7d67be5274b..4d516cf6458d 100644 --- a/pkgs/development/python-modules/pysmi/default.nix +++ b/pkgs/development/python-modules/pysmi/default.nix @@ -18,7 +18,7 @@ }: buildPythonPackage rec { - version = "1.4.4"; + version = "1.5.0"; pname = "pysmi"; pyproject = true; @@ -26,7 +26,7 @@ buildPythonPackage rec { owner = "lextudio"; repo = "pysmi"; rev = "refs/tags/v${version}"; - hash = "sha256-9ArKo1UT4g+H8Z51NZ6rHlOhyz2grAc1V8Xl+ztfYic="; + hash = "sha256-9yAsseMI50RhVeyFvuTo/pN9ftrvvUWYCacy2v3VVT8="; }; build-system = [ poetry-core ]; From e51a1871e3ae178df0a269c22faf60f2028f7195 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 7 Sep 2024 18:46:32 +0200 Subject: [PATCH 2/2] python312Packages.pysmi: refactor --- .../python-modules/pysmi/default.nix | 21 ++++++++----------- 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/pysmi/default.nix b/pkgs/development/python-modules/pysmi/default.nix index 4d516cf6458d..69aac0ffc10f 100644 --- a/pkgs/development/python-modules/pysmi/default.nix +++ b/pkgs/development/python-modules/pysmi/default.nix @@ -2,19 +2,14 @@ lib, buildPythonPackage, fetchFromGitHub, - - # build-system - poetry-core, - - # dependencies - ply, jinja2, - requests, - - # tests + ply, + poetry-core, pysmi, pysnmp, pytestCheckHook, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -22,6 +17,8 @@ buildPythonPackage rec { pname = "pysmi"; pyproject = true; + disabled = pythonOlder "3.8"; + src = fetchFromGitHub { owner = "lextudio"; repo = "pysmi"; @@ -37,14 +34,14 @@ buildPythonPackage rec { requests ]; - # Tests require pysnmp, which in turn requires pysmi => infinite recursion - doCheck = false; - nativeCheckInputs = [ pysnmp pytestCheckHook ]; + # Tests require pysnmp, which in turn requires pysmi => infinite recursion + doCheck = false; + pythonImportsCheck = [ "pysmi" ]; passthru.tests.pytest = pysmi.overridePythonAttrs { doCheck = true; };