2022-04-15 01:41:22 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, setuptools, python, which }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nodeenv";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "1.6.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "3ef13ff90291ba2a4a7a4ff9a979b63ffdd00a464dbe04acf0ea6471517a4c2b";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# Tests not included in PyPI tarball
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
preFixup = ''
|
|
|
|
substituteInPlace $out/${python.sitePackages}/nodeenv.py \
|
|
|
|
--replace '["which", candidate]' '["${lib.getBin which}/bin/which", candidate]'
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "nodeenv" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Node.js virtual environment builder";
|
|
|
|
homepage = "https://github.com/ekalinin/nodeenv";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|