unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#29958] [PATCH] gnu: Add python2-mmtk.
@ 2018-01-02 19:04 Konrad Hinsen
  2018-01-04 17:47 ` Leo Famulari
  0 siblings, 1 reply; 5+ messages in thread
From: Konrad Hinsen @ 2018-01-02 19:04 UTC (permalink / raw)
  To: 29958

* gnu/packages/python.scm (python2-mmtk): New public variable.
---
 gnu/packages/python.scm | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 875982645..eeafe159d 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -12249,3 +12249,43 @@ physical units, automatic derivatives, ...) whereas others are more
 domain-specific (e.g. netCDF and PDB support).  The library is currently
 not actively maintained and works only with Python 2 and NumPy < 1.9.")
     (license license:cecill-c)))
+
+(define-public python2-mmtk
+  (package
+    (name "python2-mmtk")
+    (version "2.7.10")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://bitbucket.org/khinsen/"
+                           "mmtk/downloads/MMTK-" version ".tar.gz"))
+       (file-name (string-append "MMTK-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1k4gsd50zja89dbzgy3aji7h4zpvbvdfrds7rxr3whqrsgcffnir"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("netcdf" ,netcdf)))
+    (propagated-inputs
+     `(("python-scientific" ,python2-scientific)
+       ("python-tkinter" ,python-2 "tk")))
+    (arguments
+     `(#:python ,python-2
+       #:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'build 'includes-from-scientific
+           (lambda* (#:key inputs #:allow-other-keys)
+             (invoke "cp" "-r"
+                     (string-append
+                      (assoc-ref inputs "python-scientific")
+                      "/include/python2.7/Scientific")
+                     "Include/"))))))
+    (home-page "http://dirac.cnrs-orleans.fr/MMTK")
+    (synopsis "Python library for molecular simulation")
+    (description "MMTK is a library for molecular simulations with an emphasis
+on biomolecules.  It provides widely used methods such as Molecular Dynamics
+and normal mode analysis, but also basic routines for implementing new methods
+for simulation and analysis.  The library is currently not actively maintained
+and works only with Python 2 and NumPy < 1.9.")
+    (license license:cecill-c)))
-- 
2.14.3 (Apple Git-98)

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#29958] [PATCH] gnu: Add python2-mmtk.
  2018-01-02 19:04 [bug#29958] [PATCH] gnu: Add python2-mmtk Konrad Hinsen
@ 2018-01-04 17:47 ` Leo Famulari
  2018-01-04 22:34   ` [bug#29958] [PATCH v2] " Danny Milosavljevic
  0 siblings, 1 reply; 5+ messages in thread
From: Leo Famulari @ 2018-01-04 17:47 UTC (permalink / raw)
  To: Konrad Hinsen; +Cc: 29958

[-- Attachment #1: Type: text/plain, Size: 600 bytes --]

On Tue, Jan 02, 2018 at 08:04:53PM +0100, Konrad Hinsen wrote:
> * gnu/packages/python.scm (python2-mmtk): New public variable.

Thanks!

> +         (add-before 'build 'includes-from-scientific
> +           (lambda* (#:key inputs #:allow-other-keys)
> +             (invoke "cp" "-r"
> +                     (string-append
> +                      (assoc-ref inputs "python-scientific")
> +                      "/include/python2.7/Scientific")
> +                     "Include/"))))))

Is it possible to make this use the copy-recursively instead of `cp`? I
did try it naively and it didn't work.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#29958] [PATCH v2] gnu: Add python2-mmtk.
  2018-01-04 17:47 ` Leo Famulari
@ 2018-01-04 22:34   ` Danny Milosavljevic
  2018-01-05  9:24     ` Konrad Hinsen
  0 siblings, 1 reply; 5+ messages in thread
From: Danny Milosavljevic @ 2018-01-04 22:34 UTC (permalink / raw)
  To: 29958; +Cc: Konrad Hinsen

From: Konrad Hinsen <konrad.hinsen@fastmail.net>

* gnu/packages/python.scm (python2-mmtk): New public variable.
---
 gnu/packages/python.scm | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 3dde9af34..d64c9bf85 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -12249,3 +12249,44 @@ physical units, automatic derivatives, ...) whereas others are more
 domain-specific (e.g. netCDF and PDB support).  The library is currently
 not actively maintained and works only with Python 2 and NumPy < 1.9.")
     (license license:cecill-c)))
+
+(define-public python2-mmtk
+  (package
+    (name "python2-mmtk")
+    (version "2.7.10")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://bitbucket.org/khinsen/"
+                           "mmtk/downloads/MMTK-" version ".tar.gz"))
+       (file-name (string-append "MMTK-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1k4gsd50zja89dbzgy3aji7h4zpvbvdfrds7rxr3whqrsgcffnir"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("netcdf" ,netcdf)))
+    (propagated-inputs
+     `(("python-scientific" ,python2-scientific)
+       ("python-tkinter" ,python-2 "tk")))
+    (arguments
+     `(#:python ,python-2
+       #:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'build 'includes-from-scientific
+           (lambda* (#:key inputs #:allow-other-keys)
+             (mkdir-p "Include/Scientific")
+             (copy-recursively
+                     (string-append
+                      (assoc-ref inputs "python-scientific")
+                      "/include/python2.7/Scientific")
+                     "Include/Scientific"))))))
+    (home-page "http://dirac.cnrs-orleans.fr/MMTK")
+    (synopsis "Python library for molecular simulation")
+    (description "MMTK is a library for molecular simulations with an emphasis
+on biomolecules.  It provides widely used methods such as Molecular Dynamics
+and normal mode analysis, but also basic routines for implementing new methods
+for simulation and analysis.  The library is currently not actively maintained
+and works only with Python 2 and NumPy < 1.9.")
+    (license license:cecill-c)))

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#29958] [PATCH v2] gnu: Add python2-mmtk.
  2018-01-04 22:34   ` [bug#29958] [PATCH v2] " Danny Milosavljevic
@ 2018-01-05  9:24     ` Konrad Hinsen
  2018-01-05  9:30       ` bug#29958: " Danny Milosavljevic
  0 siblings, 1 reply; 5+ messages in thread
From: Konrad Hinsen @ 2018-01-05  9:24 UTC (permalink / raw)
  To: 29958

Danny Milosavljevic <dannym@scratchpost.org> writes:

> +       (modify-phases %standard-phases
> +         (add-before 'build 'includes-from-scientific
> +           (lambda* (#:key inputs #:allow-other-keys)
> +             (mkdir-p "Include/Scientific")
> +             (copy-recursively
> +                     (string-append
> +                      (assoc-ref inputs "python-scientific")
> +                      "/include/python2.7/Scientific")
> +                     "Include/Scientific"))))))

Works fine for me!

Thanks,
  Konrad.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#29958: [PATCH v2] gnu: Add python2-mmtk.
  2018-01-05  9:24     ` Konrad Hinsen
@ 2018-01-05  9:30       ` Danny Milosavljevic
  0 siblings, 0 replies; 5+ messages in thread
From: Danny Milosavljevic @ 2018-01-05  9:30 UTC (permalink / raw)
  To: Konrad Hinsen; +Cc: 29958-done

Pushed as 42d6bffc2ff55406e75bf2f7096d4074c18cf382 to guix master!

Thanks!

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-01-05  9:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-02 19:04 [bug#29958] [PATCH] gnu: Add python2-mmtk Konrad Hinsen
2018-01-04 17:47 ` Leo Famulari
2018-01-04 22:34   ` [bug#29958] [PATCH v2] " Danny Milosavljevic
2018-01-05  9:24     ` Konrad Hinsen
2018-01-05  9:30       ` bug#29958: " Danny Milosavljevic

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).