Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / nuitka / default.nix
blobfee04a0e40f43deaca4a8fff8ed03435fa4473d8
1 { lib
2 , buildPythonPackage
3 , ccache
4 , fetchFromGitHub
5 , isPyPy
6 , ordered-set
7 , python3
8 , setuptools
9 , zstandard
12 buildPythonPackage rec {
13   pname = "nuitka";
14   version = "1.8.4";
15   pyproject = true;
17   src = fetchFromGitHub {
18     owner = "Nuitka";
19     repo = "Nuitka";
20     rev = version;
21     hash = "sha256-spa3V9KEjqmwnHSuxLLIu9hJk5PrRwNyOw72sfxBVKo=";
22   };
24   # default lto off for darwin
25   patches = [ ./darwin-lto.patch ];
27   nativeBuildInputs = [ setuptools ];
28   nativeCheckInputs = [ ccache  ];
30   propagatedBuildInputs = [
31     ordered-set
32     zstandard
33   ];
35   checkPhase = ''
36     runHook preCheck
38     ${python3.interpreter} tests/basics/run_all.py search
40     runHook postCheck
41   '';
43   pythonImportsCheck = [ "nuitka" ];
45   # Requires CPython
46   disabled = isPyPy;
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   };