From 6b046b466cd7e644500b9a645e91c839262f7dbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 11 Aug 2024 08:07:53 -0700 Subject: [PATCH] python312Packages.pytest-django: run all tests Previously some would be skipped with messages like SKIPPED [1] tests/test_db_setup.py:203: could not import 'xdist': No module named 'xdist' --- .../development/python-modules/pytest-django/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/pytest-django/default.nix b/pkgs/development/python-modules/pytest-django/default.nix index d1fe3b75ca1c3..71e6e66c5b5b1 100644 --- a/pkgs/development/python-modules/pytest-django/default.nix +++ b/pkgs/development/python-modules/pytest-django/default.nix @@ -7,6 +7,7 @@ setuptools-scm, django-configurations, pytest, + pytest-xdist, pytestCheckHook, }: buildPythonPackage rec { @@ -19,17 +20,18 @@ buildPythonPackage rec { hash = "sha256-XQVP4BHFbzsQ+Xj0Go77Llrfx+aA7zb7VxraHyR3nZA="; }; - nativeBuildInputs = [ + build-system = [ setuptools setuptools-scm ]; buildInputs = [ pytest ]; - propagatedBuildInputs = [ django ]; + dependencies = [ django ]; nativeCheckInputs = [ django-configurations + pytest-xdist pytestCheckHook ]; @@ -49,7 +51,8 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; meta = with lib; { - description = "py.test plugin for testing of Django applications"; + changelog = "https://github.com/pytest-dev/pytest-django/blob/v${version}/docs/changelog.rst"; + description = "Pytest plugin for testing of Django applications"; homepage = "https://pytest-django.readthedocs.org/en/latest/"; license = licenses.bsd3; };