Files
nixpkgs/pkgs/development/python-modules/nodeenv/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

59 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";
tag = 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 = {
description = "Node.js virtual environment builder";
mainProgram = "nodeenv";
homepage = "https://github.com/ekalinin/nodeenv";
changelog = "https://github.com/ekalinin/nodeenv/releases/tag/${version}";
license = lib.licenses.bsd3;
maintainers = [ ];
};
}