Merge pull request #130422 from veprbl/pr/pypy_7_3_5
pypy: 7.3.3 -> 7.3.5, provide python 3.7
This commit is contained in:
commit
be8323ecb7
@ -236,9 +236,9 @@ in {
|
||||
sourceVersion = {
|
||||
major = "7";
|
||||
minor = "3";
|
||||
patch = "3";
|
||||
patch = "5";
|
||||
};
|
||||
sha256 = "0di3dr5ry4r0hwxh4fbqjhyl5im948wdby0bhijzsxx83c2qhd7n";
|
||||
sha256 = "sha256-wERP2YcwWMHA2Z4TqTTpIoXLBZksmWi/Ujwyv5vsCp0=";
|
||||
pythonVersion = "2.7";
|
||||
db = db.override { dbmSupport = !stdenv.isDarwin; };
|
||||
python = python27;
|
||||
@ -247,15 +247,15 @@ in {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
|
||||
pypy36 = callPackage ./pypy {
|
||||
self = pypy36;
|
||||
pypy37 = callPackage ./pypy {
|
||||
self = pypy37;
|
||||
sourceVersion = {
|
||||
major = "7";
|
||||
minor = "3";
|
||||
patch = "3";
|
||||
patch = "5";
|
||||
};
|
||||
sha256 = "1bq5i2mqgjjfc4rhxgxm6ihwa76vn2qapd7l59ri7xp01p522gd2";
|
||||
pythonVersion = "3.6";
|
||||
sha256 = "sha256-2SD+QJqeytnQdKqFaMpfPtNYG+ZvZuXYmIt+xm5tmaI=";
|
||||
pythonVersion = "3.7";
|
||||
db = db.override { dbmSupport = !stdenv.isDarwin; };
|
||||
python = python27;
|
||||
inherit passthruFun;
|
||||
|
@ -73,6 +73,8 @@ in with passthru; stdenv.mkDerivation rec {
|
||||
LD_LIBRARY_PATH = makeLibraryPath (filter (x : x.outPath != stdenv.cc.libc.outPath or "") buildInputs);
|
||||
|
||||
patches = [
|
||||
./dont_fetch_vendored_deps.patch
|
||||
|
||||
(substituteAll {
|
||||
src = ./tk_tcl_paths.patch;
|
||||
inherit tk tcl;
|
||||
@ -81,12 +83,18 @@ in with passthru; stdenv.mkDerivation rec {
|
||||
tk_libprefix = tk.libPrefix;
|
||||
tcl_libprefix = tcl.libPrefix;
|
||||
})
|
||||
|
||||
(substituteAll {
|
||||
src = ./sqlite_paths.patch;
|
||||
inherit (sqlite) out dev;
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace "lib-python/${if isPy3k then "3/tkinter/tix.py" else "2.7/lib-tk/Tix.py"}" --replace "os.environ.get('TIX_LIBRARY')" "os.environ.get('TIX_LIBRARY') or '${tix}/lib'"
|
||||
substituteInPlace lib_pypy/pypy_tools/build_cffi_imports.py \
|
||||
--replace "multiprocessing.cpu_count()" "$NIX_BUILD_CORES"
|
||||
|
||||
sed -i "s@libraries=\['sqlite3'\]\$@libraries=['sqlite3'], include_dirs=['${sqlite.dev}/include'], library_dirs=['${sqlite.out}/lib']@" lib_pypy/_sqlite3_build.py
|
||||
substituteInPlace "lib-python/${if isPy3k then "3/tkinter/tix.py" else "2.7/lib-tk/Tix.py"}" --replace "os.environ.get('TIX_LIBRARY')" "os.environ.get('TIX_LIBRARY') or '${tix}/lib'"
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
|
@ -0,0 +1,12 @@
|
||||
diff -ur a/lib_pypy/pypy_tools/build_cffi_imports.py b/lib_pypy/pypy_tools/build_cffi_imports.py
|
||||
--- a/lib_pypy/pypy_tools/build_cffi_imports.py 2021-04-12 01:11:48.000000000 -0400
|
||||
+++ b/lib_pypy/pypy_tools/build_cffi_imports.py 2021-07-16 06:37:03.000000000 -0400
|
||||
@@ -225,6 +225,8 @@
|
||||
|
||||
print('*', ' '.join(args), file=sys.stderr)
|
||||
if embed_dependencies and key in cffi_dependencies:
|
||||
+ print("Nixpkgs: skipping fetching/building dependency", key)
|
||||
+ elif False:
|
||||
status, stdout, stderr = _build_dependency(key)
|
||||
if status != 0:
|
||||
failures.append((key, module))
|
12
pkgs/development/interpreters/python/pypy/sqlite_paths.patch
Normal file
12
pkgs/development/interpreters/python/pypy/sqlite_paths.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -ur a/lib_pypy/_sqlite3_build.py b/lib_pypy/_sqlite3_build.py
|
||||
--- a/lib_pypy/_sqlite3_build.py 2021-04-12 01:11:48.000000000 -0400
|
||||
+++ b/lib_pypy/_sqlite3_build.py 2021-07-14 18:08:33.000000000 -0400
|
||||
@@ -301,6 +301,8 @@
|
||||
else:
|
||||
extra_args = dict(
|
||||
libraries=libraries,
|
||||
+ include_dirs=['@dev@/include'],
|
||||
+ library_dirs=['@out@/lib']
|
||||
)
|
||||
|
||||
SOURCE = """
|
@ -12583,7 +12583,7 @@ in
|
||||
python3 = python38;
|
||||
pypy = pypy2;
|
||||
pypy2 = pypy27;
|
||||
pypy3 = pypy36;
|
||||
pypy3 = pypy37;
|
||||
|
||||
# Python interpreter that is build with all modules, including tkinter.
|
||||
# These are for compatibility and should not be used inside Nixpkgs.
|
||||
@ -12639,7 +12639,7 @@ in
|
||||
python3Packages = python3.pkgs;
|
||||
|
||||
pythonInterpreters = callPackage ./../development/interpreters/python { };
|
||||
inherit (pythonInterpreters) python27 python36 python37 python38 python39 python310 python3Minimal pypy27 pypy36;
|
||||
inherit (pythonInterpreters) python27 python36 python37 python38 python39 python310 python3Minimal pypy27 pypy37;
|
||||
|
||||
# Python package sets.
|
||||
python27Packages = python27.pkgs;
|
||||
|
Loading…
Reference in New Issue
Block a user