diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2024-05-03 22:39:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-03 22:39:09 +0200 |
commit | d05d3577989899fc2888bfbce4dcfd317c127c3b (patch) | |
tree | 6a4093b09894cc0599d6f438f7794fd658f5aad8 | |
parent | fa5d2cbb630e3f22952e8f55c742d9c2b588ca27 (diff) | |
parent | e6f807fc163271955436e095f60c12962fd975eb (diff) |
Merge pull request #308797 from fabaff/py-zabbix-fix
python312Packages.py-zabbix: disable failing tests on Python 3.12
-rw-r--r-- | pkgs/development/python-modules/py-zabbix/default.nix | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/pkgs/development/python-modules/py-zabbix/default.nix b/pkgs/development/python-modules/py-zabbix/default.nix index b39a706c65387..e9251892bd07f 100644 --- a/pkgs/development/python-modules/py-zabbix/default.nix +++ b/pkgs/development/python-modules/py-zabbix/default.nix @@ -1,15 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + pytestCheckHook, + pythonAtLeast, + pythonOlder, + setuptools, }: buildPythonPackage rec { pname = "py-zabbix"; version = "1.1.7"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.8"; @@ -29,17 +32,21 @@ buildPythonPackage rec { }) ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + build-system = [ setuptools ]; + + nativeCheckInputs = [ pytestCheckHook ]; + + pythonImportsCheck = [ "pyzabbix" ]; - pythonImportsCheck = [ - "pyzabbix" + disabledTests = lib.optionals (pythonAtLeast "3.12") [ + # AttributeError: 'RawConfigParser' object has no attribute 'readfp' + "config" ]; meta = with lib; { description = "Python module to interact with Zabbix"; homepage = "https://github.com/adubkov/py-zabbix"; + changelog = "https://github.com/adubkov/py-zabbix/releases/tag/${version}"; license = licenses.gpl2Only; maintainers = with maintainers; [ fab ]; }; |