* [bug#56186] [PATCH] gnu: Add python-deepdish.
@ 2022-06-24 12:50 Antero Mejr via Guix-patches via
2022-07-03 11:11 ` bug#56186: " Ludovic Courtès
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Antero Mejr via Guix-patches via @ 2022-06-24 12:50 UTC (permalink / raw)
To: 56186
* gnu/packages/python-science.scm (python-deepdish): New variable.
---
gnu/packages/python-science.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 56f109e3d5..0f5403b36b 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -1367,3 +1367,34 @@ (define-public python-gpy
Python, from the Sheffield machine learning group. GPy implements a range of
machine learning algorithms based on GPs.")
(license license:bsd-3)))
+
+(define-public python-deepdish
+ (package
+ (name "python-deepdish")
+ (version "0.3.7")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "deepdish" version))
+ (sha256
+ (base32
+ "1wqzwh3y0mjdyba5kfbvlamn561d3afz50zi712c7klkysz3mzva"))))
+ (arguments
+ (list #:phases #~(modify-phases %standard-phases
+ (add-after 'unpack 'dont-vendor-six
+ (lambda _
+ (delete-file "deepdish/six.py")
+ (substitute* "deepdish/io/hdf5io.py"
+ (("from deepdish import six") "import six"))
+ (substitute* "deepdish/io/ls.py"
+ (("from deepdish import io, six, __version__")
+ "from deepdish import io, __version__
+import six
+")))))))
+ (build-system python-build-system)
+ (native-inputs (list python-pandas))
+ (propagated-inputs (list python-numpy python-scipy python-six
+ python-tables))
+ (home-page "https://github.com/uchicago-cs/deepdish")
+ (synopsis "Python library for HDF5 file saving and loading")
+ (description "HDF5 saving/loading and other data science tools.")
+ (license license:bsd-3)))
--
2.36.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* bug#56186: [PATCH] gnu: Add python-deepdish.
2022-06-24 12:50 [bug#56186] [PATCH] gnu: Add python-deepdish Antero Mejr via Guix-patches via
@ 2022-07-03 11:11 ` Ludovic Courtès
2022-07-30 20:54 ` [bug#56186] " Maxime Devos
2022-08-01 19:34 ` [bug#56186] [PATCH] gnu: Update python-deepdish package definition Antero Mejr via Guix-patches via
2 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2022-07-03 11:11 UTC (permalink / raw)
To: Antero Mejr; +Cc: 56186-done
[-- Attachment #1: Type: text/plain, Size: 307 bytes --]
Hi Antero,
Antero Mejr <antero@mailbox.org> skribis:
> * gnu/packages/python-science.scm (python-deepdish): New variable.
Applied with the changes below (inspired by ‘README.rst’), as per
<https://guix.gnu.org/manual/devel/en/html_node/Synopses-and-Descriptions.html>.
Thanks,
Ludo’.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 858 bytes --]
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 135c6a99ff..747c84d493 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -1396,5 +1396,10 @@ (define-public python-deepdish
python-tables))
(home-page "https://github.com/uchicago-cs/deepdish")
(synopsis "Python library for HDF5 file saving and loading")
- (description "HDF5 saving/loading and other data science tools.")
+ (description
+ "Deepdish is a Python library to load and save HDF5 files.
+The primary feature of deepdish is its ability to save and load all kinds of
+data as HDF5. It can save any Python data structure, offering the same ease
+of use as pickling or @code{numpy.save}, but with the language
+interoperability offered by HDF5.")
(license license:bsd-3)))
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#56186] [PATCH] gnu: Add python-deepdish.
2022-06-24 12:50 [bug#56186] [PATCH] gnu: Add python-deepdish Antero Mejr via Guix-patches via
2022-07-03 11:11 ` bug#56186: " Ludovic Courtès
@ 2022-07-30 20:54 ` Maxime Devos
2022-08-01 19:34 ` [bug#56186] [PATCH] gnu: Update python-deepdish package definition Antero Mejr via Guix-patches via
2 siblings, 0 replies; 4+ messages in thread
From: Maxime Devos @ 2022-07-30 20:54 UTC (permalink / raw)
To: Antero Mejr, 56186
[-- Attachment #1.1.1: Type: text/plain, Size: 814 bytes --]
On 24-06-2022 14:50, Antero Mejr via Guix-patches via wrote:
> + (add-after 'unpack 'dont-vendor-six
> + (lambda _
> + (delete-file "deepdish/six.py")
> + (substitute* "deepdish/io/hdf5io.py"
> + (("from deepdish import six") "import six"))
> + (substitute* "deepdish/io/ls.py"
> + (("from deepdish import io, six, __version__")
> + "from deepdish import io, __version__
If you move it to an origin snippet, then the result of "guix build
--source" becomes 'cleaner' in the sense that it actually corresponds to
what is built, could it be moved there?
Greetings,
Maxime.
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 929 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* [bug#56186] [PATCH] gnu: Update python-deepdish package definition.
2022-06-24 12:50 [bug#56186] [PATCH] gnu: Add python-deepdish Antero Mejr via Guix-patches via
2022-07-03 11:11 ` bug#56186: " Ludovic Courtès
2022-07-30 20:54 ` [bug#56186] " Maxime Devos
@ 2022-08-01 19:34 ` Antero Mejr via Guix-patches via
2 siblings, 0 replies; 4+ messages in thread
From: Antero Mejr via Guix-patches via @ 2022-08-01 19:34 UTC (permalink / raw)
To: 56186; +Cc: Antero Mejr, maximedevos
* gnu/packages/python-science.scm (python-deepdish): Move code patch
to source snippet.
---
gnu/packages/python-science.scm | 22 +++++++++-------------
1 file changed, 9 insertions(+), 13 deletions(-)
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 57c9325f49..905de853e0 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -1377,19 +1377,15 @@ (define-public python-deepdish
(uri (pypi-uri "deepdish" version))
(sha256
(base32
- "1wqzwh3y0mjdyba5kfbvlamn561d3afz50zi712c7klkysz3mzva"))))
- (arguments
- (list #:phases #~(modify-phases %standard-phases
- (add-after 'unpack 'dont-vendor-six
- (lambda _
- (delete-file "deepdish/six.py")
- (substitute* "deepdish/io/hdf5io.py"
- (("from deepdish import six") "import six"))
- (substitute* "deepdish/io/ls.py"
- (("from deepdish import io, six, __version__")
- "from deepdish import io, __version__
-import six
-")))))))
+ "1wqzwh3y0mjdyba5kfbvlamn561d3afz50zi712c7klkysz3mzva"))
+ (modules '((guix build utils)))
+ (snippet #~(begin (delete-file "deepdish/six.py")
+ (substitute* "deepdish/io/hdf5io.py"
+ (("from deepdish import six") "import six"))
+ (substitute* "deepdish/io/ls.py"
+ (("from deepdish import io, six, __version__")
+ "from deepdish import io, __version__
+import six"))))))
(build-system python-build-system)
(native-inputs (list python-pandas))
(propagated-inputs (list python-numpy python-scipy python-six
--
2.37.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-08-01 19:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-24 12:50 [bug#56186] [PATCH] gnu: Add python-deepdish Antero Mejr via Guix-patches via
2022-07-03 11:11 ` bug#56186: " Ludovic Courtès
2022-07-30 20:54 ` [bug#56186] " Maxime Devos
2022-08-01 19:34 ` [bug#56186] [PATCH] gnu: Update python-deepdish package definition Antero Mejr via Guix-patches via
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).