nixpkgs/pkgs/development/python-modules/nodeenv/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
1003 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, mock
, pytestCheckHook
, python
, pythonOlder
, setuptools
, which
}:
2018-07-30 21:29:18 +00:00
buildPythonPackage rec {
pname = "nodeenv";
version = "1.7.0";
format = "setuptools";
2018-07-30 21:29:18 +00:00
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "ekalinin";
repo = pname;
rev = version;
hash = "sha256-X30PUiOMT/vXqmdSJKHTNNA8aLWavCUaKa7LzqkdLrk=";
2018-07-30 21:29:18 +00:00
};
propagatedBuildInputs = [
setuptools
];
checkInputs = [
mock
pytestCheckHook
];
2018-07-30 21:29:18 +00:00
preFixup = ''
substituteInPlace $out/${python.sitePackages}/nodeenv.py \
--replace '["which", candidate]' '["${lib.getBin which}/bin/which", candidate]'
'';
pythonImportsCheck = [
"nodeenv"
];
disabledTests = [
# Test requires coverage
"test_smoke"
];
2018-07-30 21:29:18 +00:00
meta = with lib; {
description = "Node.js virtual environment builder";
homepage = "https://github.com/ekalinin/nodeenv";
2018-07-30 21:29:18 +00:00
license = licenses.bsd3;
maintainers = with maintainers; [ ];
2018-07-30 21:29:18 +00:00
};
}