aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/nuitka
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2019-10-05 12:43:18 +0000
committerKatharina Fey <kookie@spacekookie.de>2019-10-05 12:44:52 +0000
commitcf85056ba64caf3267d43255ef4a1243e9c8ee3b (patch)
tree3051519e9c8275b870aac43f80af875715c9d124 /nixpkgs/pkgs/development/python-modules/nuitka
parent1148b1d122bc03e9a3665856c9b7bb96bd4e3994 (diff)
parent2436c27541b2f52deea3a4c1691216a02152e729 (diff)
Add 'nixpkgs/' from commit '2436c27541b2f52deea3a4c1691216a02152e729'
git-subtree-dir: nixpkgs git-subtree-mainline: 1148b1d122bc03e9a3665856c9b7bb96bd4e3994 git-subtree-split: 2436c27541b2f52deea3a4c1691216a02152e729
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/nuitka')
-rw-r--r--nixpkgs/pkgs/development/python-modules/nuitka/default.nix52
1 files changed, 52 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/nuitka/default.nix b/nixpkgs/pkgs/development/python-modules/nuitka/default.nix
new file mode 100644
index 00000000000..6be1f39328f
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/nuitka/default.nix
@@ -0,0 +1,52 @@
+{ stdenv
+, buildPythonPackage
+, fetchurl
+, vmprof
+, pyqt4
+, isPyPy
+, pkgs
+}:
+
+let
+ # scons is needed but using it requires Python 2.7
+ # Therefore we create a separate env for it.
+ scons = pkgs.python27.withPackages(ps: [ pkgs.scons ]);
+in buildPythonPackage rec {
+ version = "0.6.5";
+ pname = "Nuitka";
+
+ # Latest version is not yet on PyPi
+ src = fetchurl {
+ url = "https://github.com/kayhayen/Nuitka/archive/${version}.tar.gz";
+ sha256 = "18vcmbyqdwsfa9gyj1sf518hsqczx7qlzrdc22hdb1zawzknb1pb";
+ };
+
+ checkInputs = [ vmprof pyqt4 ];
+ nativeBuildInputs = [ scons ];
+
+ postPatch = ''
+ patchShebangs tests/run-tests
+ '' + stdenv.lib.optionalString stdenv.isLinux ''
+ substituteInPlace nuitka/plugins/standard/ImplicitImports.py --replace 'locateDLL("uuid")' '"${pkgs.utillinux.out}/lib/libuuid.so"'
+ '';
+
+ # We do not want any wrappers here.
+ postFixup = '''';
+
+ checkPhase = ''
+ tests/run-tests
+ '';
+
+ # Problem with a subprocess (parts)
+ doCheck = false;
+
+ # Requires CPython
+ disabled = isPyPy;
+
+ meta = with stdenv.lib; {
+ description = "Python compiler with full language support and CPython compatibility";
+ license = licenses.asl20;
+ homepage = http://nuitka.net/;
+ };
+
+}