mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-27 23:02:16 -05:00
gnu: python-jwst: Replace reference to external configobj.
* gnu/packages/astronomy.scm (python-jwst) [source]: Replace reference to external configobj. Change-Id: Id539446c16a16c5ff86f1518cbc0080bdefc85b5
This commit is contained in:
parent
91bfad51c0
commit
e8ab82fb93
1 changed files with 10 additions and 1 deletions
|
@ -4047,7 +4047,16 @@ (define-public python-jwst
|
|||
(uri (pypi-uri "jwst" version))
|
||||
(sha256
|
||||
(base32
|
||||
"0knl2x0z3djsln8mi3a4bkxjz49iwmnr1v6wwsk13zvpkfq21vv4"))))
|
||||
"0knl2x0z3djsln8mi3a4bkxjz49iwmnr1v6wwsk13zvpkfq21vv4"))
|
||||
(modules '((guix build utils)))
|
||||
(snippet
|
||||
'(begin
|
||||
;; Replace reference to external configobj.
|
||||
(substitute* (find-files "." "\\.py$")
|
||||
(("from astropy.extern import configobj") "import configobj")
|
||||
(("from astropy.extern.configobj import validate") "import validate")
|
||||
(("from astropy.extern.configobj.configobj import ") "from configobj import ")
|
||||
(("from astropy.extern.configobj.validate import ") "from validate import "))))))
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
(list
|
||||
|
|
Loading…
Reference in a new issue