From f3903312b07f06380d5a388f3ba2c87390742fd4 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 26 Apr 2024 14:45:26 +0200 Subject: [PATCH 1/3] python312Packages.transitions: refactor --- .../python-modules/transitions/default.nix | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/transitions/default.nix b/pkgs/development/python-modules/transitions/default.nix index 9b054c823342..10b0329b5a8c 100644 --- a/pkgs/development/python-modules/transitions/default.nix +++ b/pkgs/development/python-modules/transitions/default.nix @@ -2,27 +2,32 @@ , stdenv , buildPythonPackage , fetchPypi -, pythonAtLeast -, six +, fontconfig +, graphviz +, mock +, pycodestyle , pygraphviz , pytestCheckHook -, mock -, graphviz -, pycodestyle -, fontconfig +, pythonAtLeast +, setuptools +, six }: buildPythonPackage rec { pname = "transitions"; version = "0.9.0"; - format = "setuptools"; + pyproject = true; src = fetchPypi { inherit pname version; hash = "sha256-L1TRG9siV3nX5ykBHpOp+3F2aM49xl+NT1pde6L0jhA="; }; - propagatedBuildInputs = [ + build-system = [ + setuptools + ]; + + dependencies = [ six pygraphviz # optional ]; @@ -54,6 +59,7 @@ buildPythonPackage rec { meta = with lib; { homepage = "https://github.com/pytransitions/transitions"; description = "A lightweight, object-oriented finite state machine implementation in Python"; + changelog = "https://github.com/pytransitions/transitions/releases/tag/${version}"; license = licenses.mit; maintainers = with maintainers; [ dotlambda ]; }; From 8b014acdfece7e832b3c30e998862c42b0a86780 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 26 Apr 2024 14:45:53 +0200 Subject: [PATCH 2/3] python312Packages.transitions: disable failing tests on x86_64 --- .../python-modules/transitions/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/transitions/default.nix b/pkgs/development/python-modules/transitions/default.nix index 10b0329b5a8c..8ed221cd23e9 100644 --- a/pkgs/development/python-modules/transitions/default.nix +++ b/pkgs/development/python-modules/transitions/default.nix @@ -44,12 +44,12 @@ buildPythonPackage rec { export HOME=$TMPDIR ''; - # upstream issue https://github.com/pygraphviz/pygraphviz/issues/441 - pytestFlagsArray = lib.optionals stdenv.isDarwin [ - "--deselect=tests/test_pygraphviz.py::PygraphvizTest::test_binary_stream" - "--deselect=tests/test_pygraphviz.py::PygraphvizTest::test_diagram" - "--deselect=tests/test_pygraphviz.py::TestPygraphvizNested::test_binary_stream" - "--deselect=tests/test_pygraphviz.py::TestPygraphvizNested::test_diagram" + disabledTests = [ + "test_diagram" + "test_ordered_with_graph" + ] ++ lib.optionals stdenv.isDarwin [ + # Upstream issue https://github.com/pygraphviz/pygraphviz/issues/441 + "test_binary_stream" ]; pythonImportsCheck = [ From 68a17d0de410ed5643660a460ed91499126fb3b0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 26 Apr 2024 16:11:43 +0200 Subject: [PATCH 3/3] python312Packages.rq: disable failing test --- pkgs/development/python-modules/rq/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/rq/default.nix b/pkgs/development/python-modules/rq/default.nix index 36ddd4d95b34..45c8627be5df 100644 --- a/pkgs/development/python-modules/rq/default.nix +++ b/pkgs/development/python-modules/rq/default.nix @@ -61,6 +61,11 @@ buildPythonPackage rec { "rq" ]; + disabledTests = [ + # AttributeError + "test_clean_large_registry" + ]; + meta = with lib; { description = "Library for creating background jobs and processing them"; homepage = "https://github.com/nvie/rq/";