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