3
0
Fork 0
forked from mirrors/nixpkgs

pythonPackages.Nuitka: init at 0.5.20

This commit is contained in:
Frederik Rietdijk 2016-08-10 11:14:01 +02:00
parent 9a13e54cb3
commit ec4d36e8e5

View file

@ -14695,6 +14695,51 @@ in modules // {
};
};
Nuitka = let
# scons is needed but using it requires Python 2.7
# Therefore we create a separate env for it.
scons = pkgs.python27.withPackages(ps: [ pkgs.scons ]);
in buildPythonPackage rec {
version = "0.5.21.3";
name = "Nuitka-${version}";
# Latest version is not yet on PyPi
src = pkgs.fetchurl {
url = "https://github.com/kayhayen/Nuitka/archive/${version}.tar.gz";
sha256 = "1i2069hxb94q9kkwcbky59fin8hk1vlj90lwgmrdhn1srvig1cq3";
};
buildInputs = with self; stdenv.lib.optionals doCheck [ vmprof pyqt4 ];
propagatedBuildInputs = [ scons ];
postPatch = ''
patchShebangs tests/run-tests
'' + stdenv.lib.optionalString stdenv.isLinux ''
substituteInPlace nuitka/plugins/standard/ImplicitImports.py --replace 'locateDLL("uuid")' '"${pkgs.utillinux.out}/lib/libuuid.so"'
'';
# We do not want any wrappers here.
postFixup = '''';
checkPhase = ''
tests/run-tests
'';
# Problem with a subprocess (parts)
doCheck = false;
# Requires CPython
disabled = isPyPy;
meta = {
description = "Python compiler with full language support and CPython compatibility";
license = licenses.asl20;
homepage = http://nuitka.net/;
};
};
buildNumpyPackage = callPackage ../development/python-modules/numpy.nix {
gfortran = pkgs.gfortran;
blas = pkgs.openblasCompat;