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