diff --git a/pkgs/development/python-modules/virtualenv/default.nix b/pkgs/development/python-modules/virtualenv/default.nix index 9a35b8a6b457..7d77263711a9 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" ];