nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 31 lines 757 B view raw
1{ lib, buildPythonPackage, fetchPypi, setuptools, python, which }: 2 3buildPythonPackage rec { 4 pname = "nodeenv"; 5 version = "1.6.0"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "3ef13ff90291ba2a4a7a4ff9a979b63ffdd00a464dbe04acf0ea6471517a4c2b"; 10 }; 11 12 propagatedBuildInputs = [ 13 setuptools 14 ]; 15 16 # Tests not included in PyPI tarball 17 doCheck = false; 18 19 preFixup = '' 20 substituteInPlace $out/${python.sitePackages}/nodeenv.py \ 21 --replace '["which", candidate]' '["${lib.getBin which}/bin/which", candidate]' 22 ''; 23 24 pythonImportsCheck = [ "nodeenv" ]; 25 26 meta = with lib; { 27 description = "Node.js virtual environment builder"; 28 homepage = "https://github.com/ekalinin/nodeenv"; 29 license = licenses.bsd3; 30 }; 31}