Merge master into staging-next
This commit is contained in:
@@ -8,14 +8,14 @@
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.14.1";
|
||||
version = "0.14.3";
|
||||
pname = "authlib";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lepture";
|
||||
repo = "authlib";
|
||||
rev = "v${version}";
|
||||
sha256 = "0z56r5s8z8pfp0p8zrf1chgzan4q25zg0awgc7bgkvkwgxbhzx4m";
|
||||
sha256 = "0ph97j94i40jj7nc5ya8pfq0ccx023zbqpcs5hrxmib53g64k5xy";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ cryptography requests ];
|
||||
|
||||
@@ -1,17 +1,18 @@
|
||||
{ lib, buildPythonPackage, fetchPypi }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "1.2.1";
|
||||
pname = "bitarray";
|
||||
version = "1.2.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1kxrlxfj9nrx512sfwifwl9z4v6ky3qschl0zmk3s3dvc3s7bmif";
|
||||
sha256 = "0m29k3lq37v53pczyr2d5mr3xdh2kv31g2yfnfx8m1ivxvy9z9i7";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Efficient arrays of booleans";
|
||||
homepage = "https://github.com/ilanschnell/bitarray";
|
||||
changelog = "https://github.com/ilanschnell/bitarray/blob/master/CHANGE_LOG";
|
||||
license = licenses.psfl;
|
||||
maintainers = [ maintainers.bhipple ];
|
||||
};
|
||||
|
||||
@@ -6,11 +6,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "braintree";
|
||||
version = "4.0.0";
|
||||
version = "4.1.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1m8z0ig40xmgcnmf508nflyy1w4qmff4kqxarrpg7rvsfj4pjsmh";
|
||||
sha256 = "1fqh1bdkk3g222vbrmw3ab4r4mmd1k4x2jayshnqpbspszcqzcdq";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ requests ];
|
||||
|
||||
@@ -9,11 +9,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cloudflare";
|
||||
version = "2.6.5";
|
||||
version = "2.7.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "4463d5f2927338384169315f34c2a8ac0840075b59489f8d1d773b91caba6c39";
|
||||
sha256 = "0w8ihj9gram2d4wkbki8f6gr8hsd950b3wzfi1qqqm17lqfk8k7h";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "EasyProcess";
|
||||
version = "0.2.10";
|
||||
version = "0.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "06zaxydyqvb5mk5kxs6y3pjbq5nm6lmi3h5g3y41xpic48q5wsv3";
|
||||
sha256 = "115rzzr0hx4af4m6krf7dxn8851n4l8jfxahjzjc2r0zq2m8v57v";
|
||||
};
|
||||
|
||||
# No tests
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "geopy";
|
||||
version = "1.21.0";
|
||||
version = "1.22.0";
|
||||
|
||||
disabled = !isPy27; # only Python 2.7
|
||||
doCheck = false; # Needs network access
|
||||
@@ -16,7 +16,7 @@ buildPythonPackage rec {
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1p1sgy2p59j0297bp7c82b45bx4d3i1p4kvbgf89c9i0llyb80nw";
|
||||
sha256 = "0jypkaqlbyr8icqypwm23lzsvq7flakp3a3nqr8ib5fmd0fzsq7q";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
||||
@@ -7,11 +7,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "isbnlib";
|
||||
version = "3.10.0";
|
||||
version = "3.10.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1p7iaa6ykvhalpv09svxs50hnp25j5nv1zzp42n5r7a7rw70wlf8";
|
||||
sha256 = "1ky5ynb8p580y2x3vpib6yrvdjgjb0wpqmdfnq5pqi3qzjyzsqra";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
, fetchPypi
|
||||
, isPy3k
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
, aenum
|
||||
, pytest
|
||||
, pytestcov
|
||||
@@ -10,16 +11,16 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pglast";
|
||||
version = "1.10";
|
||||
version = "1.11";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "a26ba77127b363446955e8a5317b3194defb1c1bb9d2ed5e7d4830fd4f066d97";
|
||||
sha256 = "8463d60b9065daf26e3c0fa6e7515d2a4594847ab417be018858832a475105f1";
|
||||
};
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
propagatedBuildInputs = lib.optionals (pythonOlder "3.6") [ aenum ];
|
||||
propagatedBuildInputs = [ setuptools ] ++ lib.optionals (pythonOlder "3.6") [ aenum ];
|
||||
|
||||
checkInputs = [ pytest pytestcov ];
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
Without this patch `virtualenv --python=python2.7 .` fails with an
|
||||
error because it notices that the python readline.so is not in the
|
||||
same path as python2.7. I assume this is to avoid copying the wrong
|
||||
file on systems where it is possible to find incompatible libraries by
|
||||
accident. Adding "/nix/store" to the prefix fixes this problem.
|
||||
|
||||
A sitecustomize.py is created in the virtualenv which makes libraries
|
||||
from the python specified by the --python argument available to the
|
||||
virtualenv. For example, this makes readline and sqlite3 available
|
||||
when a wrapped python is specified. If no --python argument is passed,
|
||||
it will only add the path to the python used when building
|
||||
`virtualenv`, which is the unwrapped python, so sqlite3 won't be
|
||||
available.
|
||||
|
||||
|
||||
diff --git a/virtualenv.py b/virtualenv.py
|
||||
index bcf3225..3530997 100755
|
||||
--- a/virtualenv.py
|
||||
+++ b/virtualenv.py
|
||||
@@ -1163,20 +1163,7 @@ def path_locations(home_dir, dry_run=False):
|
||||
|
||||
|
||||
def change_prefix(filename, dst_prefix):
|
||||
- prefixes = [sys.prefix]
|
||||
-
|
||||
- if IS_DARWIN:
|
||||
- prefixes.extend(
|
||||
- (
|
||||
- os.path.join("/Library/Python", VERSION, "site-packages"),
|
||||
- os.path.join(sys.prefix, "Extras", "lib", "python"),
|
||||
- os.path.join("~", "Library", "Python", VERSION, "site-packages"),
|
||||
- # Python 2.6 no-frameworks
|
||||
- os.path.join("~", ".local", "lib", "python", VERSION, "site-packages"),
|
||||
- # System Python 2.7 on OSX Mountain Lion
|
||||
- os.path.join("~", "Library", "Python", VERSION, "lib", "python", "site-packages"),
|
||||
- )
|
||||
- )
|
||||
+ prefixes = ["/nix/store", sys.prefix]
|
||||
|
||||
if hasattr(sys, "real_prefix"):
|
||||
prefixes.append(sys.real_prefix)
|
||||
@@ -1199,6 +1186,8 @@ def change_prefix(filename, dst_prefix):
|
||||
if src_prefix != os.sep: # sys.prefix == "/"
|
||||
assert relative_path[0] == os.sep
|
||||
relative_path = relative_path[1:]
|
||||
+ if src_prefix == "/nix/store":
|
||||
+ relative_path = "/".join(relative_path.split("/")[1:])
|
||||
return join(dst_prefix, relative_path)
|
||||
assert False, "Filename {} does not start with any of these prefixes: {}".format(filename, prefixes)
|
||||
|
||||
@@ -1375,6 +1364,11 @@ def install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages, clear, sy
|
||||
site_filename_dst = change_prefix(site_filename, home_dir)
|
||||
site_dir = os.path.dirname(site_filename_dst)
|
||||
writefile(site_filename_dst, SITE_PY)
|
||||
+ wrapper_path = join(prefix, "lib", PY_VERSION, "site-packages")
|
||||
+ writefile(
|
||||
+ join(site_dir, 'sitecustomize.py',),
|
||||
+ "import sys; sys.path.append('%s')" % wrapper_path
|
||||
+ )
|
||||
writefile(join(site_dir, "orig-prefix.txt"), prefix)
|
||||
site_packages_filename = join(site_dir, "no-global-site-packages.txt")
|
||||
if not site_packages:
|
||||
Reference in New Issue
Block a user