2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-29 13:22:20 +00:00
|
|
|
, buildPythonPackage
|
2021-08-26 19:49:10 +01:00
|
|
|
, fetchFromGitHub
|
2018-10-29 13:22:20 +00:00
|
|
|
, virtualenv
|
2021-08-26 19:49:10 +01:00
|
|
|
, pytestCheckHook
|
2018-10-29 13:22:20 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "virtualenv-clone";
|
2021-08-19 21:44:16 +01:00
|
|
|
version = "0.5.6";
|
2021-08-26 19:49:10 +01:00
|
|
|
format = "setuptools";
|
2018-10-29 13:22:20 +00:00
|
|
|
|
2021-08-26 19:49:10 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "edwardgeorge";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0xb20fhl99dw5vnyb43sjpj9628nbdnwp5g7m8f2id7w8kpwzvfw";
|
2018-10-29 13:22:20 +00:00
|
|
|
};
|
|
|
|
|
2021-08-26 19:49:10 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace tests/__init__.py \
|
|
|
|
--replace "'virtualenv'" "'${virtualenv}/bin/virtualenv'"
|
2018-10-29 13:22:20 +00:00
|
|
|
|
2021-08-26 19:49:10 +01:00
|
|
|
substituteInPlace tests/test_virtualenv_sys.py \
|
|
|
|
--replace "'virtualenv'" "'${virtualenv}/bin/virtualenv'"
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
virtualenv
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2018-10-29 13:22:20 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-07 13:09:04 +01:00
|
|
|
homepage = "https://github.com/edwardgeorge/virtualenv-clone";
|
2018-10-29 13:22:20 +00:00
|
|
|
description = "Script to clone virtualenvs";
|
|
|
|
license = licenses.mit;
|
2021-08-26 13:08:50 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-10-29 13:22:20 +00:00
|
|
|
};
|
|
|
|
}
|