54 lines
871 B
Nix
54 lines
871 B
Nix
|
{
|
||
|
lib,
|
||
|
buildPythonPackage,
|
||
|
fetchFromGitHub,
|
||
|
isPyPy,
|
||
|
ordered-set,
|
||
|
python,
|
||
|
setuptools,
|
||
|
zstandard,
|
||
|
wheel,
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "nuitka";
|
||
|
version = "2.2.3";
|
||
|
pyproject = true;
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "Nuitka";
|
||
|
repo = "Nuitka";
|
||
|
rev = version;
|
||
|
hash = "sha256-nKdCMgA92v9VsSgfktXDbSh3DyKsGlcTjpn0Y7u4rxU=";
|
||
|
};
|
||
|
|
||
|
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/";
|
||
|
};
|
||
|
}
|