ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / virtualenv-clone / default.nix
blob6d407d7ea24b5ab49da9c137f16a86b604984d1b
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , virtualenv
5 , pytestCheckHook
6 }:
8 buildPythonPackage rec {
9   pname = "virtualenv-clone";
10   version = "0.5.7";
11   format = "setuptools";
13   src = fetchFromGitHub {
14     owner = "edwardgeorge";
15     repo = pname;
16     rev = version;
17     sha256 = "sha256-qrN74IwLRqiVPxU8gVhdiM34yBmiS/5ot07uroYPDVw=";
18   };
20   postPatch = ''
21     substituteInPlace tests/__init__.py \
22       --replace "'virtualenv'" "'${virtualenv}/bin/virtualenv'"
24     substituteInPlace tests/test_virtualenv_sys.py \
25       --replace "'virtualenv'" "'${virtualenv}/bin/virtualenv'"
26   '';
28   propagatedBuildInputs = [
29     virtualenv
30   ];
32   checkInputs = [
33     pytestCheckHook
34   ];
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   };