Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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.8.10";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "Nuitka";
21 repo = "Nuitka";
22 tag = version;
23 hash = "sha256-+CevWpYvqY3SX3/QE7SPlbsFtXkdlNTg9m91VtZCHvM=";
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 = {
50 description = "Python compiler with full language support and CPython compatibility";
51 license = lib.licenses.asl20;
52 homepage = "https://nuitka.net/";
53 # never built on darwin since first introduction in nixpkgs
54 broken = stdenv.hostPlatform.isDarwin;
55 };
56}