mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 06:01:15 +00:00
Merge pull request #134878 from r-ryantm/auto-update/python3.8-virtualenv-clone
This commit is contained in:
commit
7f70726259
|
@ -1,29 +1,42 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytest
|
||||
, fetchFromGitHub
|
||||
, virtualenv
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "virtualenv-clone";
|
||||
version = "0.5.4";
|
||||
version = "0.5.6";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0absh96fsxk9di7ir76f5djyfm2c214wnyk53avrhjy8akflhpk6";
|
||||
src = fetchFromGitHub {
|
||||
owner = "edwardgeorge";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0xb20fhl99dw5vnyb43sjpj9628nbdnwp5g7m8f2id7w8kpwzvfw";
|
||||
};
|
||||
|
||||
buildInputs = [ pytest ];
|
||||
propagatedBuildInputs = [ virtualenv ];
|
||||
postPatch = ''
|
||||
substituteInPlace tests/__init__.py \
|
||||
--replace "'virtualenv'" "'${virtualenv}/bin/virtualenv'"
|
||||
|
||||
# needs tox to run the tests
|
||||
doCheck = false;
|
||||
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; [ ];
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -20653,6 +20653,10 @@ with pkgs;
|
|||
|
||||
virtlyst = libsForQt5.callPackage ../servers/web-apps/virtlyst { };
|
||||
|
||||
virtualenv = with python3Packages; toPythonApplication virtualenv;
|
||||
|
||||
virtualenv-clone = with python3Packages; toPythonApplication virtualenv-clone;
|
||||
|
||||
virtuoso6 = callPackage ../servers/sql/virtuoso/6.x.nix {
|
||||
openssl = openssl_1_0_2;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue