1{
2 lib,
3 stdenv,
4 buildPythonPackage,
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.7.15";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "Nuitka";
21 repo = "Nuitka";
22 rev = version;
23 hash = "sha256-o+rXk8Qh9SeBpuSppPBap9TL69gy9ag7PCArFSNSv7g=";
24 };
25
26 build-system = [
27 setuptools
28 wheel
29 ];
30
31 dependencies = [
32 ordered-set
33 zstandard
34 ];
35
36 checkPhase = ''
37 runHook preCheck
38
39 ${python.interpreter} tests/basics/run_all.py search
40
41 runHook postCheck
42 '';
43
44 pythonImportsCheck = [ "nuitka" ];
45
46 # Requires CPython
47 disabled = isPyPy;
48
49 meta = with lib; {
50 description = "Python compiler with full language support and CPython compatibility";
51 license = licenses.asl20;
52 homepage = "https://nuitka.net/";
53 # never built on darwin since first introduction in nixpkgs
54 broken = stdenv.hostPlatform.isDarwin;
55 };
56}