summary refs log tree commit diff
path: root/pkgs/development/interpreters/python
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2023-02-12 03:03:31 +0100
committerMartin Weinelt <hexa@darmstadt.ccc.de>2023-02-12 03:03:31 +0100
commitd704ee72c939d6a30dcd1c92bacca2413dbc90fa (patch)
tree640d1e01b0ed3145f0c76c90fc8fb640f5a89c76 /pkgs/development/interpreters/python
parentf75329f0bcacebacfdd631fd588eed6419f0ba1c (diff)
downloadnixpkgs-d704ee72c939d6a30dcd1c92bacca2413dbc90fa.tar
nixpkgs-d704ee72c939d6a30dcd1c92bacca2413dbc90fa.tar.gz
nixpkgs-d704ee72c939d6a30dcd1c92bacca2413dbc90fa.tar.bz2
nixpkgs-d704ee72c939d6a30dcd1c92bacca2413dbc90fa.tar.lz
nixpkgs-d704ee72c939d6a30dcd1c92bacca2413dbc90fa.tar.xz
nixpkgs-d704ee72c939d6a30dcd1c92bacca2413dbc90fa.tar.zst
nixpkgs-d704ee72c939d6a30dcd1c92bacca2413dbc90fa.zip
python3.tests.nixenv-virtualenv: Fix on darwin
The virtualenv mode is trying to be smart and checks whether it can
write to $out, which for some reason fails on darwin.

> virtualenv: error: argument dest: the destination . is not write-able at /nix/store

But what does work is creating it in the pwd and moving it to $out,
because mv just does what it is told.
Diffstat (limited to 'pkgs/development/interpreters/python')
-rw-r--r--pkgs/development/interpreters/python/tests.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/interpreters/python/tests.nix b/pkgs/development/interpreters/python/tests.nix
index 6282b0f6690..4ba1b757c3f 100644
--- a/pkgs/development/interpreters/python/tests.nix
+++ b/pkgs/development/interpreters/python/tests.nix
@@ -43,7 +43,8 @@ let
       # Use virtualenv from a Nix env.
       nixenv-virtualenv = rec {
         env = runCommand "${python.name}-virtualenv" {} ''
-          ${pythonVirtualEnv.interpreter} -m virtualenv $out
+          ${pythonVirtualEnv.interpreter} -m virtualenv venv
+          mv venv $out
         '';
         interpreter = "${env}/bin/${python.executable}";
         is_venv = "False";