From 8d66594a02804ec582140ae17879f9657f507b46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Wed, 7 Jan 2026 07:09:28 -0800 Subject: [PATCH] python3Packages.pytest-randomly: depends on pytest --- .../python-modules/pytest-randomly/default.nix | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/pytest-randomly/default.nix b/pkgs/development/python-modules/pytest-randomly/default.nix index 85e24735d012..732b15ee597b 100644 --- a/pkgs/development/python-modules/pytest-randomly/default.nix +++ b/pkgs/development/python-modules/pytest-randomly/default.nix @@ -4,31 +4,28 @@ factory-boy, faker, fetchFromGitHub, - importlib-metadata, numpy, + pytest, pytest-xdist, pytestCheckHook, - pythonOlder, setuptools, }: buildPythonPackage rec { pname = "pytest-randomly"; version = "3.13.0"; - format = "pyproject"; - - disabled = pythonOlder "3.8"; + pyproject = true; src = fetchFromGitHub { repo = "pytest-randomly"; owner = "pytest-dev"; - rev = version; + tag = version; hash = "sha256-bxbW22Nf/0hfJYSiz3xdrNCzrb7vZwuVvSIrWl0Bkv4="; }; - nativeBuildInputs = [ setuptools ]; + build-system = [ setuptools ]; - propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [ importlib-metadata ]; + buildInputs = [ pytest ]; nativeCheckInputs = [ factory-boy @@ -46,7 +43,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "pytest_randomly" ]; meta = { - changelog = "https://github.com/pytest-dev/pytest-randomly/blob/${version}/CHANGELOG.rst"; + changelog = "https://github.com/pytest-dev/pytest-randomly/blob/${src.tag}/CHANGELOG.rst"; description = "Pytest plugin to randomly order tests and control random.seed"; homepage = "https://github.com/pytest-dev/pytest-randomly"; license = lib.licenses.mit;