Merge master into staging-next
This commit is contained in:
@@ -1,25 +1,47 @@
|
||||
{ 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.10";
|
||||
version = "20.0.21";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "e88fdcb08b0ecb11da97868f463dd06275923f50d87f4b9c8b2fc0994eec40f4";
|
||||
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