From b598f6af591fca42892530c867c4a2c80ba6c8c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Tue, 4 Nov 2014 18:18:48 +0100 Subject: [PATCH] pythonPackages.runsnakerun: add performance/memory GUI profiler for python --- .../libraries/wxGTK-2.8/default.nix | 4 +++ .../libraries/wxGTK-2.9/default.nix | 4 +++ .../libraries/wxGTK-3.0/default.nix | 4 +++ .../python-modules/wxPython/2.8.nix | 4 +++ .../python-modules/wxPython/3.0.nix | 6 +++- pkgs/top-level/python-packages.nix | 34 +++++++++++++++++++ 6 files changed, 55 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/wxGTK-2.8/default.nix b/pkgs/development/libraries/wxGTK-2.8/default.nix index 62d2de0238f1..d7ca92f70d9b 100644 --- a/pkgs/development/libraries/wxGTK-2.8/default.nix +++ b/pkgs/development/libraries/wxGTK-2.8/default.nix @@ -57,4 +57,8 @@ stdenv.mkDerivation rec { passthru = {inherit gtk compat24 compat26 unicode;}; enableParallelBuilding = true; + + meta = { + platforms = stdenv.lib.platforms.all; + }; } diff --git a/pkgs/development/libraries/wxGTK-2.9/default.nix b/pkgs/development/libraries/wxGTK-2.9/default.nix index f61c7eafd732..47760cdb2884 100644 --- a/pkgs/development/libraries/wxGTK-2.9/default.nix +++ b/pkgs/development/libraries/wxGTK-2.9/default.nix @@ -55,4 +55,8 @@ stdenv.mkDerivation { passthru = {inherit gtk compat24 compat26 unicode;}; enableParallelBuilding = true; + + meta = { + platforms = stdenv.lib.platforms.all; + }; } diff --git a/pkgs/development/libraries/wxGTK-3.0/default.nix b/pkgs/development/libraries/wxGTK-3.0/default.nix index 9e9bf9c83dd3..93f771e8c8ff 100644 --- a/pkgs/development/libraries/wxGTK-3.0/default.nix +++ b/pkgs/development/libraries/wxGTK-3.0/default.nix @@ -55,4 +55,8 @@ stdenv.mkDerivation { passthru = {inherit gtk compat24 compat26 unicode;}; enableParallelBuilding = true; + + meta = { + platforms = stdenv.lib.platforms.all; + }; } diff --git a/pkgs/development/python-modules/wxPython/2.8.nix b/pkgs/development/python-modules/wxPython/2.8.nix index 64dd59242c2d..a6fd0100f587 100644 --- a/pkgs/development/python-modules/wxPython/2.8.nix +++ b/pkgs/development/python-modules/wxPython/2.8.nix @@ -17,4 +17,8 @@ if isPyPy then throw "wxPython-${version} not supported for interpreter ${python buildInputs = [ pkgconfig wxGTK (wxGTK.gtk) pythonPackages.python pythonPackages.wrapPython ]; passthru = { inherit wxGTK; }; + + meta = { + platforms = stdenv.lib.platforms.all; + }; } diff --git a/pkgs/development/python-modules/wxPython/3.0.nix b/pkgs/development/python-modules/wxPython/3.0.nix index 4f89dbeb4105..4974daebb2bb 100644 --- a/pkgs/development/python-modules/wxPython/3.0.nix +++ b/pkgs/development/python-modules/wxPython/3.0.nix @@ -22,4 +22,8 @@ if isPyPy then throw "wxPython-${version} not supported for interpreter ${python inherit openglSupport; passthru = { inherit wxGTK openglSupport; }; -} + + meta = { + platforms = stdenv.lib.platforms.all; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 3e8e8fd12ebe..b1b83210f3b7 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8107,6 +8107,40 @@ let }; }; + squaremap = buildPythonPackage rec { + name = "squaremap-1.0.4"; + disabled = isPy3k; + + src = pkgs.fetchurl { + url = "https://pypi.python.org/packages/source/S/SquareMap/SquareMap-1.0.4.tar.gz"; + md5 = "e36a453baddb97c19af6f79d5ba51f38"; + }; + + meta = with stdenv.lib; { + description = "Hierarchic visualization control for wxPython"; + homepage = https://launchpad.net/squaremap; + license = licenses.bsd; + }; + }; + + runsnakerun = buildPythonPackage rec { + name = "runsnakerun-2.0.4"; + + + src = pkgs.fetchurl { + url = "https://pypi.python.org/packages/source/R/RunSnakeRun/RunSnakeRun-2.0.4.tar.gz"; + md5 = "3220b5b89994baee70b1c24d7e42a306"; + }; + + propagatedBuildInputs = [ self.squaremap self.wxPython28 ]; + + meta = with stdenv.lib; { + description = "GUI Viewer for Python profiling runs"; + homepage = http://www.vrplumber.com/programming/runsnakerun/; + license = licenses.bsd; + }; + }; + rtslib_fb = buildPythonPackage rec { version = "2.1.fb43"; name = "rtslib-fb-${version}";