at 23.05-pre 1.1 kB view raw
1{ lib, stdenv 2, buildPythonPackage 3, fetchFromGitHub 4, vmprof 5, pyqt4 6, isPyPy 7, pkgs 8, scons 9, chrpath 10}: 11 12buildPythonPackage rec { 13 version = "1.1.5"; 14 pname = "Nuitka"; 15 16 # Latest version is not yet on PyPi 17 src = fetchFromGitHub { 18 owner = "Nuitka"; 19 repo = "Nuitka"; 20 rev = version; 21 sha256 = "0wgcl860acbxnq8q9hck147yhxz8pcbqhv9glracfnrsd2qkpgpp"; 22 }; 23 24 checkInputs = [ vmprof pyqt4 ]; 25 nativeBuildInputs = [ scons ]; 26 propagatedBuildInputs = [ chrpath ]; 27 28 postPatch = '' 29 patchShebangs tests/run-tests 30 '' + lib.optionalString stdenv.isLinux '' 31 substituteInPlace nuitka/plugins/standard/ImplicitImports.py --replace 'locateDLL("uuid")' '"${lib.getLib pkgs.util-linux}/lib/libuuid.so"' 32 ''; 33 34 # We do not want any wrappers here. 35 postFixup = ""; 36 37 checkPhase = '' 38 tests/run-tests 39 ''; 40 41 # Problem with a subprocess (parts) 42 doCheck = false; 43 44 # Requires CPython 45 disabled = isPyPy; 46 47 meta = with lib; { 48 description = "Python compiler with full language support and CPython compatibility"; 49 license = licenses.asl20; 50 homepage = "https://nuitka.net/"; 51 }; 52 53}