Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / nuitka / default.nix
blob936084c98399f86b6b12e4c8cdb8b4bba985611c
1 { lib
2 , buildPythonPackage
3 , ccache
4 , fetchFromGitHub
5 , isPyPy
6 , ordered-set
7 , python3
8 , setuptools
9 , zstandard
10 , wheel
13 buildPythonPackage rec {
14   pname = "nuitka";
15   version = "2.1.4";
16   pyproject = true;
18   src = fetchFromGitHub {
19     owner = "Nuitka";
20     repo = "Nuitka";
21     rev = version;
22     hash = "sha256-bV5zTYwhR/3dTM1Ij+aC6TbcPODZ5buwQi7xN8axZi0=";
23   };
25   # default lto off for darwin
26   patches = [ ./darwin-lto.patch ];
28   build-system = [ setuptools wheel ];
29   nativeCheckInputs = [ ccache  ];
31   dependencies = [
32     ordered-set
33     zstandard
34   ];
36   checkPhase = ''
37     runHook preCheck
39     ${python3.interpreter} tests/basics/run_all.py search
41     runHook postCheck
42   '';
44   pythonImportsCheck = [ "nuitka" ];
46   # Requires CPython
47   disabled = isPyPy;
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   };