mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-21 16:11:22 +00:00
python3Packages.wasmtime: 44.0.0 -> 45.0.0
This commit is contained in:
@@ -14,14 +14,14 @@
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "wasmtime";
|
||||
version = "44.0.0";
|
||||
version = "45.0.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bytecodealliance";
|
||||
repo = "wasmtime-py";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-7K0j4jMsRB7/wNIj0pXxFTy0y7aN37wgCD1XKM92Ayw=";
|
||||
hash = "sha256-XlAWPJB34uE+hbEMGZ46Ll6kXP+/lZ2amTKdjslGrP4=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
@@ -29,8 +29,9 @@ buildPythonPackage (finalAttrs: {
|
||||
--replace-fail "setuptools-git-versioning>=2.0,<3" "setuptools-git-versioning" \
|
||||
--replace-fail 'build-backend = "backend"' 'build-backend = "setuptools.build_meta"'
|
||||
|
||||
substituteInPlace ci/cbindgen.py \
|
||||
--replace-fail "'-D__builtin_va_list=int'," "'-D__builtin_va_list=int', '-Dnullptr_t=void*',"
|
||||
# `wasmtime/_{extern,types,value}.py` erroneously report unreachable statements
|
||||
substituteInPlace mypy.ini \
|
||||
--replace-fail "warn_unreachable = True" "warn_unreachable = False"
|
||||
|
||||
sed -i '/^backend-path = \[/,/^\]/d' pyproject.toml
|
||||
|
||||
@@ -62,15 +63,17 @@ buildPythonPackage (finalAttrs: {
|
||||
writableTmpDirAsHomeHook
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
"ci/cbindgen.py"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "wasmtime" ];
|
||||
|
||||
preCheck = ''
|
||||
# cbindgen.py checks bindings against C headers during test collection.
|
||||
ln -s ${lib.getDev pkgs.wasmtime}/include wasmtime/include
|
||||
|
||||
# hardening options interfere with pycparser's CC call
|
||||
export NIX_HARDENING_ENABLE=""
|
||||
|
||||
# $out is first in path which causes "import file mismatch"
|
||||
export PYTHONPATH="$PWD:$PYTHONPATH"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
||||
Reference in New Issue
Block a user