pypy{27,310}: 7.3.17 -> 7.3.19, pypy311: init at 7.3.19
This commit is contained in:
@@ -138,10 +138,10 @@
|
||||
sourceVersion = {
|
||||
major = "7";
|
||||
minor = "3";
|
||||
patch = "17";
|
||||
patch = "19";
|
||||
};
|
||||
|
||||
hash = "sha256-UOBoQPS73pFEgICkEYBoqJuPvK4l/42h4rsUAtyaA0Y=";
|
||||
hash = "sha256-hwPNywH5+Clm3UO2pgGPFAOZ21HrtDwSXB+aIV57sAM=";
|
||||
pythonVersion = "2.7";
|
||||
db = db.override { dbmSupport = !stdenv.hostPlatform.isDarwin; };
|
||||
python = __splicedPackages.pythonInterpreters.pypy27_prebuilt;
|
||||
@@ -153,31 +153,46 @@
|
||||
sourceVersion = {
|
||||
major = "7";
|
||||
minor = "3";
|
||||
patch = "17";
|
||||
patch = "19";
|
||||
};
|
||||
|
||||
hash = "sha256-atdLxXjpxtOoocUVAzEwWOPFjDXfhvdIVFPEvmqyS/c=";
|
||||
hash = "sha256-p8IpMLkY9Ahwhl7Yp0FH9ENO+E09bKKzweupNV1JKcg=";
|
||||
pythonVersion = "3.10";
|
||||
db = db.override { dbmSupport = !stdenv.hostPlatform.isDarwin; };
|
||||
python = __splicedPackages.pypy27;
|
||||
inherit passthruFun;
|
||||
};
|
||||
|
||||
pypy311 = callPackage ./pypy {
|
||||
self = __splicedPackages.pypy311;
|
||||
sourceVersion = {
|
||||
major = "7";
|
||||
minor = "3";
|
||||
patch = "19";
|
||||
};
|
||||
|
||||
hash = "sha256-SBfARLtGmjJ05gqjZFdw+B60+RZup/3E5sNRNFVUyNg=";
|
||||
pythonVersion = "3.11";
|
||||
db = db.override { dbmSupport = !stdenv.hostPlatform.isDarwin; };
|
||||
python = __splicedPackages.pypy27;
|
||||
inherit passthruFun;
|
||||
};
|
||||
|
||||
pypy27_prebuilt = callPackage ./pypy/prebuilt_2_7.nix {
|
||||
# Not included at top-level
|
||||
self = __splicedPackages.pythonInterpreters.pypy27_prebuilt;
|
||||
sourceVersion = {
|
||||
major = "7";
|
||||
minor = "3";
|
||||
patch = "17";
|
||||
patch = "19";
|
||||
};
|
||||
|
||||
hash =
|
||||
{
|
||||
aarch64-linux = "sha256-qN9c4WUPR1aTP4eAhwyRoKQOfJhw10YpvyQTkry1wuM=";
|
||||
x86_64-linux = "sha256-nzSX+HszctF+RHNp4AFqS+yZprTSpZq6d0olv+Q1NHQ=";
|
||||
aarch64-darwin = "sha256-gCJIc5sqzIwb5tlH8Zsy/A44wI4xKzXAXMf7IvEHCeQ=";
|
||||
x86_64-darwin = "sha256-gtRgQhRmyBraSh2Z3y3xuLNTQbOXyF///lGkwwItCDM=";
|
||||
aarch64-linux = "sha256-/onU/UrxP3bf5zFZdQA1GM8XZSDjzOwVRKiNF09QkQ4=";
|
||||
x86_64-linux = "sha256-04RFUIwurxTrs4DZwd7TIcXr6uMcfmaAAXPYPLjd9CM=";
|
||||
aarch64-darwin = "sha256-KHgOC5CK1ttLTglvQjcSS+eezJcxlG2EDZyHSetnp1k=";
|
||||
x86_64-darwin = "sha256-a+KNRI2OZP/8WG2bCuTQkGSoPMrrW4BgxlHFzZrgaHg=";
|
||||
}
|
||||
.${stdenv.system};
|
||||
pythonVersion = "2.7";
|
||||
@@ -190,19 +205,39 @@
|
||||
sourceVersion = {
|
||||
major = "7";
|
||||
minor = "3";
|
||||
patch = "17";
|
||||
patch = "19";
|
||||
};
|
||||
hash =
|
||||
{
|
||||
aarch64-linux = "sha256-v79JVJirwv53G2C/ZOXDwHLgr7z8pprHKCxP9Dd/9BY=";
|
||||
x86_64-linux = "sha256-NA2kGWYGsiRQmhuLMa/SAYE/CCYB3xicE46QXB1g4K8=";
|
||||
aarch64-darwin = "sha256-KPKf/JxcyQbo6QgT/BRPA34js4TwUuGE4kIzL3tgqwY=";
|
||||
x86_64-darwin = "sha256-I/8mS3PlvFt8OhufrHdosj35bH1mDLZBLxxSNSGjNL8=";
|
||||
aarch64-linux = "sha256-ryeliRePERmOIkSrZcpRBjC6l8Ex18zEAh61vFjef1c=";
|
||||
x86_64-linux = "sha256-xzrCzCOArJIn/Sl0gr8qPheoBhi6Rtt1RNU1UVMh7B4=";
|
||||
aarch64-darwin = "sha256-PbigP8SWFkgBZGhE1/OxK6oK2zrZoLfLEkUhvC4WijY=";
|
||||
x86_64-darwin = "sha256-LF5cKjOsiCVR1/KLmNGdSGuJlapQgkpztO3Mau7DXGM=";
|
||||
}
|
||||
.${stdenv.system};
|
||||
pythonVersion = "3.10";
|
||||
inherit passthruFun;
|
||||
};
|
||||
|
||||
pypy311_prebuilt = callPackage ./pypy/prebuilt.nix {
|
||||
# Not included at top-level
|
||||
self = __splicedPackages.pythonInterpreters.pypy311_prebuilt;
|
||||
sourceVersion = {
|
||||
major = "7";
|
||||
minor = "3";
|
||||
patch = "19";
|
||||
};
|
||||
hash =
|
||||
{
|
||||
aarch64-linux = "sha256-EyB9v4HOJOltp2CxuGNie3e7ILH7TJUZHgKgtyOD33Q=";
|
||||
x86_64-linux = "sha256-kXfZ4LuRsF+SHGQssP9xoPNlO10ppC1A1qB4wVt1cg8=";
|
||||
aarch64-darwin = "sha256-dwTg1TAuU5INMtz+mv7rEENtTJQjPogwz2A6qVWoYcE=";
|
||||
x86_64-darwin = "sha256-okOfnTDf2ulqXpEBx9xUqKaLVsnXMU6jmbCiXT6H67I=";
|
||||
}
|
||||
.${stdenv.system};
|
||||
pythonVersion = "3.11";
|
||||
inherit passthruFun;
|
||||
};
|
||||
}
|
||||
// lib.optionalAttrs config.allowAliases {
|
||||
pypy39_prebuilt = throw "pypy 3.9 has been removed, use pypy 3.10 instead"; # Added 2025-01-03
|
||||
|
||||
@@ -121,6 +121,9 @@ stdenv.mkDerivation rec {
|
||||
dontPatchShebangs = true;
|
||||
disallowedReferences = [ python ];
|
||||
|
||||
# fix compiler error in curses cffi module, where char* != const char*
|
||||
NIX_CFLAGS_COMPILE =
|
||||
if stdenv.cc.isClang then "-Wno-error=incompatible-function-pointer-types" else null;
|
||||
C_INCLUDE_PATH = lib.makeSearchPathOutput "dev" "include" buildInputs;
|
||||
LIBRARY_PATH = lib.makeLibraryPath buildInputs;
|
||||
LD_LIBRARY_PATH = lib.makeLibraryPath (
|
||||
@@ -192,13 +195,18 @@ stdenv.mkDerivation rec {
|
||||
mkdir -p $out/${executable}-c/pypy/bin
|
||||
mv $out/bin/${executable} $out/${executable}-c/pypy/bin/${executable}
|
||||
ln -s $out/${executable}-c/pypy/bin/${executable} $out/bin/${executable}
|
||||
''
|
||||
# _testcapi is compiled dynamically, into the store.
|
||||
# This would fail if we don't do it here.
|
||||
+ lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
pushd /
|
||||
$out/bin/${executable} -c "from test import support"
|
||||
popd
|
||||
'';
|
||||
|
||||
setupHook = python-setup-hook sitePackages;
|
||||
|
||||
# TODO: A bunch of tests are failing as of 7.1.1, please feel free to
|
||||
# fix and re-enable if you have the patience and tenacity.
|
||||
doCheck = false;
|
||||
# TODO: Investigate why so many tests are failing.
|
||||
checkPhase =
|
||||
let
|
||||
disabledTests =
|
||||
@@ -213,6 +221,9 @@ stdenv.mkDerivation rec {
|
||||
"test_urllib2net"
|
||||
"test_urllibnet"
|
||||
"test_urllib2_localnet"
|
||||
# test_subclass fails with "internal error"
|
||||
# test_load_default_certs_env fails for unknown reason
|
||||
"test_ssl"
|
||||
]
|
||||
++ lib.optionals isPy3k [
|
||||
# disable asyncio due to https://github.com/NixOS/nix/issues/1238
|
||||
@@ -226,6 +237,88 @@ stdenv.mkDerivation rec {
|
||||
# disable __all__ because of spurious imp/importlib warning and
|
||||
# warning-to-error test policy
|
||||
"test___all__"
|
||||
# fail for multiple reasons, TODO: investigate
|
||||
"test__opcode"
|
||||
"test_ast"
|
||||
"test_audit"
|
||||
"test_builtin"
|
||||
"test_c_locale_coercion"
|
||||
"test_call"
|
||||
"test_class"
|
||||
"test_cmd_line"
|
||||
"test_cmd_line_script"
|
||||
"test_code"
|
||||
"test_code_module"
|
||||
"test_codeop"
|
||||
"test_compile"
|
||||
"test_coroutines"
|
||||
"test_cprofile"
|
||||
"test_ctypes"
|
||||
"test_embed"
|
||||
"test_exceptions"
|
||||
"test_extcall"
|
||||
"test_frame"
|
||||
"test_generators"
|
||||
"test_grammar"
|
||||
"test_idle"
|
||||
"test_iter"
|
||||
"test_itertools"
|
||||
"test_list"
|
||||
"test_marshal"
|
||||
"test_memoryio"
|
||||
"test_memoryview"
|
||||
"test_metaclass"
|
||||
"test_mmap"
|
||||
"test_multibytecodec"
|
||||
"test_opcache"
|
||||
"test_pdb"
|
||||
"test_peepholer"
|
||||
"test_positional_only_arg"
|
||||
"test_print"
|
||||
"test_property"
|
||||
"test_pyclbr"
|
||||
"test_range"
|
||||
"test_re"
|
||||
"test_readline"
|
||||
"test_regrtest"
|
||||
"test_repl"
|
||||
"test_rlcompleter"
|
||||
"test_signal"
|
||||
"test_sort"
|
||||
"test_source_encoding"
|
||||
"test_ssl"
|
||||
"test_string_literals"
|
||||
"test_structseq"
|
||||
"test_subprocess"
|
||||
"test_super"
|
||||
"test_support"
|
||||
"test_syntax"
|
||||
"test_sys"
|
||||
"test_sys_settrace"
|
||||
"test_tcl"
|
||||
"test_termios"
|
||||
"test_threading"
|
||||
"test_trace"
|
||||
"test_tty"
|
||||
"test_unpack_ex"
|
||||
"test_utf8_mode"
|
||||
"test_weakref"
|
||||
"test_capi"
|
||||
"test_concurrent_futures"
|
||||
"test_dataclasses"
|
||||
"test_doctest"
|
||||
"test_future_stmt"
|
||||
"test_importlib"
|
||||
"test_inspect"
|
||||
"test_pydoc"
|
||||
"test_warnings"
|
||||
]
|
||||
++ lib.optionals isPy310 [
|
||||
"test_contextlib_async"
|
||||
"test_future"
|
||||
"test_lzma"
|
||||
"test_module"
|
||||
"test_typing"
|
||||
];
|
||||
in
|
||||
''
|
||||
@@ -264,6 +357,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://www.pypy.org/";
|
||||
changelog = "https://doc.pypy.org/en/stable/release-v${version}.html";
|
||||
description = "Fast, compliant alternative implementation of the Python language (${pythonVersion})";
|
||||
mainProgram = "pypy";
|
||||
license = licenses.mit;
|
||||
@@ -274,6 +368,9 @@ stdenv.mkDerivation rec {
|
||||
"x86_64-darwin"
|
||||
];
|
||||
broken = optimizationLevel == "0"; # generates invalid code
|
||||
maintainers = with maintainers; [ andersk ];
|
||||
maintainers = with maintainers; [
|
||||
andersk
|
||||
fliegendewurst
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -100,7 +100,6 @@ stdenv.mkDerivation {
|
||||
mv -t $out bin include lib-python lib_pypy site-packages
|
||||
mv $out/bin/libpypy*-c${stdenv.hostPlatform.extensions.sharedLibrary} $out/lib/
|
||||
${lib.optionalString stdenv.hostPlatform.isLinux ''
|
||||
mv lib/libffi.so.6* $out/lib/
|
||||
rm $out/bin/*.debug
|
||||
''}
|
||||
|
||||
|
||||
@@ -6580,7 +6580,7 @@ with pkgs;
|
||||
|
||||
pypy = pypy2;
|
||||
pypy2 = pypy27;
|
||||
pypy3 = pypy310;
|
||||
pypy3 = pypy311;
|
||||
|
||||
# Python interpreter that is build with all modules, including tkinter.
|
||||
# These are for compatibility and should not be used inside Nixpkgs.
|
||||
@@ -6652,6 +6652,7 @@ with pkgs;
|
||||
python3Minimal
|
||||
pypy27
|
||||
pypy310
|
||||
pypy311
|
||||
;
|
||||
|
||||
# List of extensions with overrides to apply to all Python package sets.
|
||||
@@ -6669,6 +6670,7 @@ with pkgs;
|
||||
pypy27Packages = pypy27.pkgs;
|
||||
pypy3Packages = pypy3.pkgs;
|
||||
pypy310Packages = pypy310.pkgs;
|
||||
pypy311Packages = pypy311.pkgs;
|
||||
|
||||
pythonManylinuxPackages = callPackage ./../development/interpreters/python/manylinux { };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user