1{
2 lib,
3 buildPythonPackage,
4 ccache,
5 fetchFromGitHub,
6 isPyPy,
7 ordered-set,
8 python,
9 setuptools,
10 zstandard,
11 wheel,
12}:
13
14buildPythonPackage rec {
15 pname = "nuitka";
16 version = "2.2.3";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "Nuitka";
21 repo = "Nuitka";
22 rev = version;
23 hash = "sha256-nKdCMgA92v9VsSgfktXDbSh3DyKsGlcTjpn0Y7u4rxU=";
24 };
25
26 build-system = [
27 setuptools
28 wheel
29 ];
30 nativeCheckInputs = [ ccache ];
31
32 dependencies = [
33 ordered-set
34 zstandard
35 ];
36
37 checkPhase = ''
38 runHook preCheck
39
40 ${python.interpreter} tests/basics/run_all.py search
41
42 runHook postCheck
43 '';
44
45 pythonImportsCheck = [ "nuitka" ];
46
47 # Requires CPython
48 disabled = isPyPy;
49
50 meta = with lib; {
51 description = "Python compiler with full language support and CPython compatibility";
52 license = licenses.asl20;
53 homepage = "https://nuitka.net/";
54 };
55}