57 lines
989 B
Nix
57 lines
989 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
isPyPy,
|
|
ordered-set,
|
|
python,
|
|
setuptools,
|
|
zstandard,
|
|
wheel,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nuitka";
|
|
version = "2.7.15";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Nuitka";
|
|
repo = "Nuitka";
|
|
rev = version;
|
|
hash = "sha256-o+rXk8Qh9SeBpuSppPBap9TL69gy9ag7PCArFSNSv7g=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
wheel
|
|
];
|
|
|
|
dependencies = [
|
|
ordered-set
|
|
zstandard
|
|
];
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
|
|
${python.interpreter} tests/basics/run_all.py search
|
|
|
|
runHook postCheck
|
|
'';
|
|
|
|
pythonImportsCheck = [ "nuitka" ];
|
|
|
|
# Requires CPython
|
|
disabled = isPyPy;
|
|
|
|
meta = with lib; {
|
|
description = "Python compiler with full language support and CPython compatibility";
|
|
license = licenses.asl20;
|
|
homepage = "https://nuitka.net/";
|
|
# never built on darwin since first introduction in nixpkgs
|
|
broken = stdenv.hostPlatform.isDarwin;
|
|
};
|
|
}
|