pythonPackages.virtualenv: 16.7.9 -> 20.0.21 fix #66366
This commit is contained in:
committed by
Frederik Rietdijk
parent
cac4473b97
commit
dc80e0724c
@@ -1,25 +1,48 @@
|
||||
{ buildPythonPackage
|
||||
, fetchPypi
|
||||
, lib
|
||||
, recursivePthLoader
|
||||
, stdenv
|
||||
, pythonOlder
|
||||
, isPy27
|
||||
, appdirs
|
||||
, contextlib2
|
||||
, distlib
|
||||
, filelock
|
||||
, importlib-metadata
|
||||
, importlib-resources
|
||||
, pathlib2
|
||||
, setuptools_scm
|
||||
, six
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "virtualenv";
|
||||
version = "16.7.9";
|
||||
version = "20.0.21";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0d62c70883c0342d59c11d0ddac0d954d0431321a41ab20851facf2b222598f3";
|
||||
sha256 = "1kxnxxwa25ghlkpyrxa8pi49v87b7ps2gyla7d1h6kbz9sfn45m1";
|
||||
|
||||
};
|
||||
|
||||
# Doubt this is needed - FRidh 2017-07-07
|
||||
pythonPath = [ recursivePthLoader ];
|
||||
nativeBuildInputs = [
|
||||
setuptools_scm
|
||||
];
|
||||
|
||||
patches = [ ./virtualenv-change-prefix.patch ];
|
||||
|
||||
# Tarball doesn't contain tests
|
||||
doCheck = false;
|
||||
propagatedBuildInputs = [
|
||||
appdirs
|
||||
distlib
|
||||
filelock
|
||||
six
|
||||
] ++ lib.optionals isPy27 [
|
||||
contextlib2
|
||||
] ++ lib.optionals (isPy27 && !stdenv.hostPlatform.isWindows) [
|
||||
pathlib2
|
||||
] ++ lib.optionals (pythonOlder "3.7") [
|
||||
importlib-resources
|
||||
] ++ lib.optionals (pythonOlder "3.8") [
|
||||
importlib-metadata
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "A tool to create isolated Python environments";
|
||||
|
||||
Reference in New Issue
Block a user