Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / nodeenv / default.nix
blob8efd0b492e76a4bd777b818a0ec628a97c295f5a
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , mock
5 , pytestCheckHook
6 , python
7 , pythonOlder
8 , setuptools
9 , which
12 buildPythonPackage rec {
13   pname = "nodeenv";
14   version = "1.8.0";
15   format = "setuptools";
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = "ekalinin";
21     repo = pname;
22     rev = "refs/tags/${version}";
23     hash = "sha256-aW/aNZbFXfP4bF/Nlvv419IDfaJRA1pJYM7awj+6Hz0=";
24   };
26   propagatedBuildInputs = [
27     setuptools
28   ];
30   nativeCheckInputs = [
31     mock
32     pytestCheckHook
33   ];
35   preFixup = ''
36     substituteInPlace $out/${python.sitePackages}/nodeenv.py \
37       --replace '["which", candidate]' '["${lib.getBin which}/bin/which", candidate]'
38   '';
40   pythonImportsCheck = [
41     "nodeenv"
42   ];
44   disabledTests = [
45     # Test requires coverage
46     "test_smoke"
47   ];
49   meta = with lib; {
50     description = "Node.js virtual environment builder";
51     mainProgram = "nodeenv";
52     homepage = "https://github.com/ekalinin/nodeenv";
53     changelog = "https://github.com/ekalinin/nodeenv/releases/tag/${version}";
54     license = licenses.bsd3;
55     maintainers = with maintainers; [ ];
56   };