diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2022-10-19 19:50:22 +0200 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2023-01-05 13:20:45 +0100 |
commit | aa4397fae050f001474400b961c4fb33194d7f6a (patch) | |
tree | 7671b8dc572cc807e39914b3dd6930b915692bc2 | |
parent | 06e855311a37989dd525ad13163c1817ea3631de (diff) | |
download | nixpkgs-aa4397fae050f001474400b961c4fb33194d7f6a.tar nixpkgs-aa4397fae050f001474400b961c4fb33194d7f6a.tar.gz nixpkgs-aa4397fae050f001474400b961c4fb33194d7f6a.tar.bz2 nixpkgs-aa4397fae050f001474400b961c4fb33194d7f6a.tar.lz nixpkgs-aa4397fae050f001474400b961c4fb33194d7f6a.tar.xz nixpkgs-aa4397fae050f001474400b961c4fb33194d7f6a.tar.zst nixpkgs-aa4397fae050f001474400b961c4fb33194d7f6a.zip |
python310Packages.virtualenv: disable on older Python releases
-rw-r--r-- | pkgs/development/python-modules/virtualenv/default.nix | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/pkgs/development/python-modules/virtualenv/default.nix b/pkgs/development/python-modules/virtualenv/default.nix index e86ec5fa7da..cb9f8ed989b 100644 --- a/pkgs/development/python-modules/virtualenv/default.nix +++ b/pkgs/development/python-modules/virtualenv/default.nix @@ -1,9 +1,8 @@ -{ stdenv -, lib +{ lib +, stdenv , buildPythonPackage , pythonOlder , isPy27 -, backports-entry-points-selectable , cython , distlib , fetchPypi @@ -18,7 +17,6 @@ , pytest-timeout , pytestCheckHook , setuptools-scm -, six }: buildPythonPackage rec { @@ -26,6 +24,8 @@ buildPythonPackage rec { version = "20.17.1"; format = "setuptools"; + disabled = pythonOlder "3.6"; + src = fetchPypi { inherit pname version; hash = "sha256-+LknaE78bxzCBsnbKXpXCrmtDlHBb6nkVIfTbRkFwFg="; @@ -36,13 +36,9 @@ buildPythonPackage rec { ]; propagatedBuildInputs = [ - backports-entry-points-selectable distlib filelock platformdirs - six - ] ++ lib.optionals (pythonOlder "3.4" && !stdenv.hostPlatform.isWindows) [ - pathlib2 ] ++ lib.optionals (pythonOlder "3.7") [ importlib-resources ] ++ lib.optionals (pythonOlder "3.8") [ @@ -66,8 +62,8 @@ buildPythonPackage rec { export HOME=$(mktemp -d) ''; - # Ignore tests which require network access disabledTestPaths = [ + # Ignore tests which require network access "tests/unit/create/test_creator.py" "tests/unit/seed/embed/test_bootstrap_link_via_app_data.py" ]; @@ -78,16 +74,16 @@ buildPythonPackage rec { "test_seed_link_via_app_data" # Permission Error "test_bad_exe_py_info_no_raise" - ] ++ lib.optionals isPy27 [ - "test_python_via_env_var" - "test_python_multi_value_prefer_newline_via_env_var" ]; - pythonImportsCheck = [ "virtualenv" ]; + pythonImportsCheck = [ + "virtualenv" + ]; meta = with lib; { description = "A tool to create isolated Python environments"; homepage = "http://www.virtualenv.org"; + changelog = "https://github.com/pypa/virtualenv/releases/tag/${version}"; license = licenses.mit; maintainers = with maintainers; [ goibhniu ]; }; |