From fc26589de9ceadf556f14baec218fc2eeb6cbdfd Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sun, 12 Apr 2026 19:38:00 +0000 Subject: [PATCH] python3Packages.para: cleanup, disable tests on python>=3.14 --- .../python-modules/para/default.nix | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/para/default.nix b/pkgs/development/python-modules/para/default.nix index 7277d533dd86..5dc4feb35ced 100644 --- a/pkgs/development/python-modules/para/default.nix +++ b/pkgs/development/python-modules/para/default.nix @@ -3,28 +3,36 @@ stdenv, buildPythonPackage, fetchPypi, - pytestCheckHook, + + # build-system setuptools, + + # tests + pytestCheckHook, + pythonOlder, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "para"; version = "0.0.8"; pyproject = true; src = fetchPypi { - inherit pname version; + inherit (finalAttrs) pname version; hash = "sha256-RsMjKunY6p2IbP0IzdESiSICvthkX0C2JVWXukz+8hc="; }; build-system = [ setuptools ]; - nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ "para" ]; - # AttributeError: Can't get local object 'test_output_queue_size..get_the_a' - doCheck = !stdenv.hostPlatform.isDarwin; + nativeCheckInputs = [ pytestCheckHook ]; + + doCheck = + # AttributeError: Can't get local object 'test_output_queue_size..get_the_a' + (!stdenv.hostPlatform.isDarwin) + # _pickle.PicklingError: Can't pickle local object .get_the_a at 0x7ffff5689fe0> + && (pythonOlder "3.14"); meta = { description = "Set utilities that ake advantage of python's 'multiprocessing' module to distribute CPU-intensive tasks"; @@ -32,4 +40,4 @@ buildPythonPackage rec { license = lib.licenses.mit; maintainers = with lib.maintainers; [ GaetanLepage ]; }; -} +})