guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Add Gridmap + psutils.


From: Ricardo Wurmus
Subject: [PATCH] Add Gridmap + psutils.
Date: Fri, 10 Jul 2015 14:59:22 +0200

>From 0f415a0c5a18083c5ead7cf0c84c201234a806e0 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <address@hidden>
Date: Fri, 10 Jul 2015 14:57:05 +0200
Subject: [PATCH 1/2] gnu: Add python-psutil.

* gnu/packages/python.scm (python-psutil, python2-psutil): New variables.
---
 gnu/packages/python.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 5cad200..a1e8843 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -249,6 +249,36 @@ data types.")
      "\n\nThis wrapper package provides symbolic links to the python binaries
       without version suffix."))))
 
+(define-public python-psutil
+  (package
+    (name "python-psutil")
+    (version "3.0.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://pypi.python.org/packages/source/p/psutil/psutil-";
+             version ".tar.gz"))
+       (sha256
+        (base32
+         "00c8h1mzqysih99z8pnbmdv117d2naldf11yjy50dhykxsf3n89z"))))
+    (build-system python-build-system)
+    (native-inputs
+      `(("python-setuptools" ,python-setuptools)))
+    (home-page "https://pypi.python.org/pypi/psutil/";)
+    (synopsis "Library for retrieving information on running processes")
+    (description
+     "psutil (Python system and process utilities) is a library for retrieving
+information on running processes and system utilization (CPU, memory, disks,
+network) in Python.  It is useful mainly for system monitoring, profiling and
+limiting process resources and management of running processes.  It implements
+many functionalities offered by command line tools such as: ps, top, lsof,
+netstat, ifconfig, who, df, kill, free, nice, ionice, iostat, iotop, uptime,
+pidof, tty, taskset, pmap.")
+    (license bsd-3)))
+
+(define-public python2-psutil
+  (package-with-python2 python-psutil))
 
 (define-public python-pytz
   (package
-- 
2.1.0

>From 772798dcaba2097d17ad969b0acdad3f10a047e3 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <address@hidden>
Date: Fri, 10 Jul 2015 14:58:09 +0200
Subject: [PATCH 2/2] gnu: Add python-gridmap.

* gnu/packages/python.scm (python-gridmap, python2-gridmap): New variables.
---
 gnu/packages/python.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index a1e8843..dea7f8f 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -3234,6 +3234,38 @@ Python language binding specification.")
 (define-public python2-drmaa
   (package-with-python2 python-drmaa))
 
+(define-public python-gridmap
+  (package
+    (name "python-gridmap")
+    (version "0.13.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://github.com/pygridtools/gridmap/archive/v";
+             version ".tar.gz"))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1gzjg2k6f14i1msm2b0ax8d9ds1hvk6qd5nlaivg8m4cxqp4cp1x"))))
+    (build-system python-build-system)
+    (inputs
+     `(("python-psutil" ,python-psutil)
+       ("python-drmaa" ,python-drmaa)
+       ("python-pyzmq" ,python-pyzmq)))
+    (native-inputs
+     `(;("python-nose" ,python-nose)
+       ("python-setuptools" ,python-setuptools)))
+    (home-page "https://github.com/pygridtools/gridmap";)
+    (synopsis "Create jobs on a cluster directly from Python")
+    (description
+      "Gridmap is a Python package to allow you to easily create jobs on the
+cluster directly from Python.  You can directly map Python functions onto the
+cluster without needing to write any wrapper code yourself.")
+    (license gpl3+)))
+
+(define-public python2-gridmap
+  (package-with-python2 python-gridmap))
+
 (define-public python-ipython
   (package
     (name "python-ipython")
-- 
2.1.0


reply via email to

[Prev in Thread] Current Thread [Next in Thread]