From 9a13e54cb3440239c931c0199a7665a6a7cfaf87 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Wed, 10 Aug 2016 11:13:53 +0200 Subject: [PATCH 1/2] pythonPackages.vmprof: init at 0.3.3 --- pkgs/top-level/python-packages.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e63e08540213..7b698c548019 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -24324,6 +24324,29 @@ in modules // { }; }); + vmprof = buildPythonPackage rec { + version = "0.3.3"; + name = "vmprof-${version}"; + + # Url using old scheme doesn't seem to work + src = pkgs.fetchurl { + url = "https://files.pythonhosted.org/packages/c3/f3/f039ca77e727c5c2d3e61967a2a5c9ecc0ef6ca235012fd5559febb77cd0/vmprof-0.3.3.tar.gz"; + sha256 = "991bc2f1dc824c63e9b399f9e8606deded92a52378d0e449f258807d7556b039"; + }; + + propagatedBuildInputs = with self; [ requests2 six]; + + # No tests included + doCheck = false; + + meta = { + description = "A vmprof client"; + license = licenses.mit; + homepage = https://vmprof.readthedocs.org/; + }; + + }; + vultr = buildPythonPackage rec { version = "0.1.2"; name = "vultr-${version}"; From ec4d36e8e5e58593981fee984040698a3b8d8179 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Wed, 10 Aug 2016 11:14:01 +0200 Subject: [PATCH 2/2] pythonPackages.Nuitka: init at 0.5.20 --- pkgs/top-level/python-packages.nix | 45 ++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7b698c548019..be4a69ef7b01 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -14695,6 +14695,51 @@ in modules // { }; }; + Nuitka = 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.5.21.3"; + name = "Nuitka-${version}"; + + # Latest version is not yet on PyPi + src = pkgs.fetchurl { + url = "https://github.com/kayhayen/Nuitka/archive/${version}.tar.gz"; + sha256 = "1i2069hxb94q9kkwcbky59fin8hk1vlj90lwgmrdhn1srvig1cq3"; + }; + + buildInputs = with self; stdenv.lib.optionals doCheck [ vmprof pyqt4 ]; + + propagatedBuildInputs = [ 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 = { + description = "Python compiler with full language support and CPython compatibility"; + license = licenses.asl20; + homepage = http://nuitka.net/; + }; + }; + + buildNumpyPackage = callPackage ../development/python-modules/numpy.nix { gfortran = pkgs.gfortran; blas = pkgs.openblasCompat;