5ca88bfbb9
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
58 lines
1.1 KiB
Nix
58 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
mock,
|
|
pytestCheckHook,
|
|
python,
|
|
pythonOlder,
|
|
setuptools,
|
|
setuptools-scm,
|
|
which,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nodeenv";
|
|
version = "1.9.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ekalinin";
|
|
repo = "nodeenv";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-nud8HSfx1ri0UZf25VPCy7swfaSM13u5+HzozK+ikeY=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
preFixup = ''
|
|
substituteInPlace $out/${python.sitePackages}/nodeenv.py \
|
|
--replace '["which", candidate]' '["${lib.getBin which}/bin/which", candidate]'
|
|
'';
|
|
|
|
pythonImportsCheck = [ "nodeenv" ];
|
|
|
|
disabledTests = [
|
|
# Test requires coverage
|
|
"test_smoke"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Node.js virtual environment builder";
|
|
mainProgram = "nodeenv";
|
|
homepage = "https://github.com/ekalinin/nodeenv";
|
|
changelog = "https://github.com/ekalinin/nodeenv/releases/tag/${version}";
|
|
license = licenses.bsd3;
|
|
maintainers = [ ];
|
|
};
|
|
}
|