Merge pull request #264023 from robert-manchester/nuitka_update_181

python3Packages.nuitka: 1.1.5 -> 1.8.4
This commit is contained in:
OTABI Tomoya 2023-10-29 18:01:05 +09:00 committed by GitHub
commit 9717178447
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,49 +1,51 @@
{ lib, stdenv
{ lib
, stdenv
, buildPythonPackage
, ccache
, fetchFromGitHub
, vmprof
, isPyPy
, pkgs
, scons
, chrpath
, ordered-set
, python3
, setuptools
, zstandard
}:
buildPythonPackage rec {
pname = "nuitka";
version = "1.1.5";
format = "setuptools";
version = "1.8.4";
pyproject = true;
src = fetchFromGitHub {
owner = "Nuitka";
repo = "Nuitka";
rev = version;
hash = "sha256-8eWOcxATVS866nlN39b2VU1CuXAfcn0yQsDweHS2yDU=";
hash = "sha256-spa3V9KEjqmwnHSuxLLIu9hJk5PrRwNyOw72sfxBVKo=";
};
nativeCheckInputs = [ vmprof ];
nativeBuildInputs = [ scons ];
propagatedBuildInputs = [ chrpath ];
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [ ccache ];
postPatch = ''
patchShebangs tests/run-tests
'' + lib.optionalString stdenv.isLinux ''
substituteInPlace nuitka/plugins/standard/ImplicitImports.py --replace 'locateDLL("uuid")' '"${lib.getLib pkgs.util-linux}/lib/libuuid.so"'
'';
# We do not want any wrappers here.
postFixup = "";
propagatedBuildInputs = [
ordered-set
zstandard
];
checkPhase = ''
tests/run-tests
runHook preCheck
${python3.interpreter} tests/basics/run_all.py search
runHook postCheck
'';
# Problem with a subprocess (parts)
doCheck = false;
pythonImportsCheck = [ "nuitka" ];
# Requires CPython
disabled = isPyPy;
meta = with lib; {
# tests fail with linker errors on darwin
broken = stdenv.isDarwin;
description = "Python compiler with full language support and CPython compatibility";
license = licenses.asl20;
homepage = "https://nuitka.net/";