diff --git a/pkgs/development/python-modules/pysmi/default.nix b/pkgs/development/python-modules/pysmi/default.nix index b7d67be5274b..69aac0ffc10f 100644 --- a/pkgs/development/python-modules/pysmi/default.nix +++ b/pkgs/development/python-modules/pysmi/default.nix @@ -2,31 +2,28 @@ lib, buildPythonPackage, fetchFromGitHub, - - # build-system - poetry-core, - - # dependencies - ply, jinja2, - requests, - - # tests + ply, + poetry-core, pysmi, pysnmp, pytestCheckHook, + pythonOlder, + requests, }: buildPythonPackage rec { - version = "1.4.4"; + version = "1.5.0"; pname = "pysmi"; pyproject = true; + disabled = pythonOlder "3.8"; + src = fetchFromGitHub { owner = "lextudio"; repo = "pysmi"; rev = "refs/tags/v${version}"; - hash = "sha256-9ArKo1UT4g+H8Z51NZ6rHlOhyz2grAc1V8Xl+ztfYic="; + hash = "sha256-9yAsseMI50RhVeyFvuTo/pN9ftrvvUWYCacy2v3VVT8="; }; build-system = [ poetry-core ]; @@ -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; };