1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-03 14:22:35 +03:00
nixpkgs/pkgs/development/python-modules/virtualenv-clone/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
901 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, virtualenv
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "virtualenv-clone";
2021-12-07 04:16:54 +00:00
version = "0.5.7";
format = "setuptools";
src = fetchFromGitHub {
owner = "edwardgeorge";
repo = pname;
rev = version;
2021-12-07 04:16:54 +00:00
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
];
checkInputs = [
pytestCheckHook
];
meta = with lib; {
homepage = "https://github.com/edwardgeorge/virtualenv-clone";
description = "Script to clone virtualenvs";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}