2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
2021-05-03 20:48:10 +00:00
|
|
|
, fetchFromGitHub
|
2020-04-24 23:36:52 +00:00
|
|
|
, vmprof
|
|
|
|
, pyqt4
|
|
|
|
, isPyPy
|
|
|
|
, pkgs
|
2021-05-03 20:48:10 +00:00
|
|
|
, scons
|
|
|
|
, chrpath
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
version = "0.6.14.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "Nuitka";
|
|
|
|
|
|
|
|
# Latest version is not yet on PyPi
|
2021-05-03 20:48:10 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kayhayen";
|
|
|
|
repo = "Nuitka";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "08kcp22zdgp25kk4bp56z196mn6bdi3z4x0q2y9vyz0ywfzp9zap";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ vmprof pyqt4 ];
|
|
|
|
nativeBuildInputs = [ scons ];
|
2021-05-03 20:48:10 +00:00
|
|
|
propagatedBuildInputs = [ chrpath ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs tests/run-tests
|
2021-02-05 17:12:51 +00:00
|
|
|
'' + lib.optionalString stdenv.isLinux ''
|
2020-11-24 20:58:05 +00:00
|
|
|
substituteInPlace nuitka/plugins/standard/ImplicitImports.py --replace 'locateDLL("uuid")' '"${pkgs.util-linux.out}/lib/libuuid.so"'
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
# We do not want any wrappers here.
|
2021-02-05 17:12:51 +00:00
|
|
|
postFixup = "";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
tests/run-tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Problem with a subprocess (parts)
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
# Requires CPython
|
|
|
|
disabled = isPyPy;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Python compiler with full language support and CPython compatibility";
|
|
|
|
license = licenses.asl20;
|
|
|
|
homepage = "https://nuitka.net/";
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|