python39Packages.nodeenv: hardcode which path
This commit is contained in:
parent
b393b879e0
commit
6edf36f81c
1 changed files with 8 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ lib, buildPythonPackage, fetchPypi, setuptools }:
|
{ lib, buildPythonPackage, fetchPypi, setuptools, python, which }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "nodeenv";
|
pname = "nodeenv";
|
||||||
|
@ -16,6 +16,13 @@ buildPythonPackage rec {
|
||||||
# Tests not included in PyPI tarball
|
# Tests not included in PyPI tarball
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
preFixup = ''
|
||||||
|
substituteInPlace $out/${python.sitePackages}/nodeenv.py \
|
||||||
|
--replace '["which", candidate]' '["${lib.getBin which}/bin/which", candidate]'
|
||||||
|
'';
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "nodeenv" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Node.js virtual environment builder";
|
description = "Node.js virtual environment builder";
|
||||||
homepage = "https://github.com/ekalinin/nodeenv";
|
homepage = "https://github.com/ekalinin/nodeenv";
|
||||||
|
|
Loading…
Reference in a new issue