mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-16 21:10:25 +08:00
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
43 lines
907 B
Nix
43 lines
907 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, virtualenv
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "virtualenv-clone";
|
|
version = "0.5.7";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "edwardgeorge";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-qrN74IwLRqiVPxU8gVhdiM34yBmiS/5ot07uroYPDVw=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace tests/__init__.py \
|
|
--replace "'virtualenv'" "'${virtualenv}/bin/virtualenv'"
|
|
|
|
substituteInPlace tests/test_virtualenv_sys.py \
|
|
--replace "'virtualenv'" "'${virtualenv}/bin/virtualenv'"
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
virtualenv
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/edwardgeorge/virtualenv-clone";
|
|
description = "Script to clone virtualenvs";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|