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