unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Antero Mejr via Guix-patches via <guix-patches@gnu.org>
To: 56186@debbugs.gnu.org
Cc: Antero Mejr <antero@mailbox.org>, maximedevos@telenet.be
Subject: [bug#56186] [PATCH] gnu: Update python-deepdish package definition.
Date: Mon,  1 Aug 2022 15:34:39 -0400	[thread overview]
Message-ID: <20220801193439.2471378-1-antero@mailbox.org> (raw)
In-Reply-To: <20220624125033.5605-1-antero@mailbox.org>

* 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





      parent reply	other threads:[~2022-08-01 19:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220801193439.2471378-1-antero@mailbox.org \
    --to=guix-patches@gnu.org \
    --cc=56186@debbugs.gnu.org \
    --cc=antero@mailbox.org \
    --cc=maximedevos@telenet.be \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).