From 9a0ea920a0c4a81e795ebaf8e1f63db0e5cdcd65 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 21 Jan 2024 07:20:58 +0000 Subject: [PATCH 1/2] python312Packages.pytest-random-order: 1.1.0 -> 1.1.1 --- .../python-modules/pytest-random-order/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pytest-random-order/default.nix b/pkgs/development/python-modules/pytest-random-order/default.nix index 5218f0a778e5..77b9ec17f08f 100644 --- a/pkgs/development/python-modules/pytest-random-order/default.nix +++ b/pkgs/development/python-modules/pytest-random-order/default.nix @@ -6,13 +6,13 @@ }: buildPythonPackage rec { - version = "1.1.0"; + version = "1.1.1"; format = "setuptools"; pname = "pytest-random-order"; src = fetchPypi { inherit pname version; - hash = "sha256-2+beu5NTp6+YTMnt2+s1d91Nu8wVKaeePSH2jtm0VgU="; + hash = "sha256-RHLX008fHF86NZxP/FwT7QZSMvMeyhnIhEwatAbnkIA="; }; disabled = pythonOlder "3.5"; From 85c1d08cb5358a5567abacb83fc7aa238b6e977b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 21 Jan 2024 13:07:02 +0100 Subject: [PATCH 2/2] python311Packages.pytest-random-order: refactor --- .../pytest-random-order/default.nix | 33 +++++++++++++++---- 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/pytest-random-order/default.nix b/pkgs/development/python-modules/pytest-random-order/default.nix index 77b9ec17f08f..2b2b6624c099 100644 --- a/pkgs/development/python-modules/pytest-random-order/default.nix +++ b/pkgs/development/python-modules/pytest-random-order/default.nix @@ -1,28 +1,49 @@ { lib , buildPythonPackage , fetchPypi -, pythonOlder +, py , pytest +, pytest-xdist +, pytestCheckHook +, pythonOlder +, setuptools }: buildPythonPackage rec { - version = "1.1.1"; - format = "setuptools"; pname = "pytest-random-order"; + version = "1.1.1"; + pyproject = true; + + disabled = pythonOlder "3.5"; src = fetchPypi { inherit pname version; hash = "sha256-RHLX008fHF86NZxP/FwT7QZSMvMeyhnIhEwatAbnkIA="; }; - disabled = pythonOlder "3.5"; + nativeBuildInputs = [ + setuptools + ]; - buildInputs = [ pytest ]; + buildInputs = [ + pytest + ]; + + nativeCheckInputs = [ + py + pytest-xdist + pytestCheckHook + ]; + + pythonImportsCheck = [ + "random_order" + ]; meta = with lib; { homepage = "https://github.com/jbasko/pytest-random-order"; description = "Randomise the order of tests with some control over the randomness"; + changelog = "https://github.com/jbasko/pytest-random-order/releases/tag/v${version}"; license = licenses.mit; - maintainers = [ maintainers.prusnak ]; + maintainers = with maintainers; [ prusnak ]; }; }