From c41b74ac57046315160a7c84cafdb69f8237b140 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 17 Sep 2025 18:00:28 +0200 Subject: [PATCH] pypy313Packages.virtualenv: set pyproject = true, cleanup old python versions, fix pypy --- .../python-modules/virtualenv/default.nix | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/virtualenv/default.nix b/pkgs/development/python-modules/virtualenv/default.nix index 5d26d7d54820..b596a40d8cec 100644 --- a/pkgs/development/python-modules/virtualenv/default.nix +++ b/pkgs/development/python-modules/virtualenv/default.nix @@ -10,7 +10,6 @@ flaky, hatch-vcs, hatchling, - importlib-metadata, platformdirs, pytest-freezegun, pytest-mock, @@ -22,26 +21,23 @@ buildPythonPackage rec { pname = "virtualenv"; version = "20.33.1"; - format = "pyproject"; - - disabled = pythonOlder "3.7"; + pyproject = true; src = fetchPypi { inherit pname version; hash = "sha256-G0RHjZ4mGz+4uqXnSgyjvA4F8hqjYWe/nL+FDlQnZbg="; }; - nativeBuildInputs = [ + build-system = [ hatch-vcs hatchling ]; - propagatedBuildInputs = [ + dependencies = [ distlib filelock platformdirs - ] - ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; + ]; nativeCheckInputs = [ cython @@ -81,6 +77,8 @@ buildPythonPackage rec { "test_can_build_c_extensions" # fails to detect pypy version "test_discover_ok" + # type error + "test_fallback_existent_system_executable" ]; pythonImportsCheck = [ "virtualenv" ];