1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, virtualenv
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "virtualenv-clone";
10 version = "0.5.7";
11 format = "setuptools";
12
13 src = fetchFromGitHub {
14 owner = "edwardgeorge";
15 repo = pname;
16 rev = version;
17 sha256 = "sha256-qrN74IwLRqiVPxU8gVhdiM34yBmiS/5ot07uroYPDVw=";
18 };
19
20 postPatch = ''
21 substituteInPlace tests/__init__.py \
22 --replace "'virtualenv'" "'${virtualenv}/bin/virtualenv'"
23
24 substituteInPlace tests/test_virtualenv_sys.py \
25 --replace "'virtualenv'" "'${virtualenv}/bin/virtualenv'"
26 '';
27
28 propagatedBuildInputs = [
29 virtualenv
30 ];
31
32 checkInputs = [
33 pytestCheckHook
34 ];
35
36 meta = with lib; {
37 homepage = "https://github.com/edwardgeorge/virtualenv-clone";
38 description = "Script to clone virtualenvs";
39 license = licenses.mit;
40 maintainers = with maintainers; [ ];
41 };
42}