depot/third_party/nixpkgs/pkgs/development/python-modules/nuitka/default.nix
Default email dae973cb59 Project import generated by Copybara.
GitOrigin-RevId: c90c4025bb6e0c4eaf438128a3b2640314b1c58d
2023-03-08 18:32:21 +02:00

52 lines
1.1 KiB
Nix

{ lib, stdenv
, buildPythonPackage
, fetchFromGitHub
, vmprof
, pyqt4
, isPyPy
, pkgs
, scons
, chrpath
}:
buildPythonPackage rec {
version = "1.4.8";
pname = "Nuitka";
src = fetchFromGitHub {
owner = "Nuitka";
repo = "Nuitka";
rev = version;
hash = "sha256-8eWOcxATVS866nlN39b2VU1CuXAfcn0yQsDweHS2yDU=";
};
nativeCheckInputs = [ vmprof pyqt4 ];
nativeBuildInputs = [ scons ];
propagatedBuildInputs = [ chrpath ];
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 = "";
checkPhase = ''
tests/run-tests
'';
# Problem with a subprocess (parts)
doCheck = false;
# Requires CPython
disabled = isPyPy;
meta = with lib; {
description = "Python compiler with full language support and CPython compatibility";
license = licenses.asl20;
homepage = "https://nuitka.net/";
};
}