mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 03:55:08 -06:00
gnu: python-mathics-scanner: Update to 2.0.0.
* gnu/packages/maths.scm (python-mathics-scanner): Update to 2.0.0. [arguments]<#:phases>[prepare]: Modify. Change-Id: I3e6cfe6b18899a1000d181b024aebbd120397250
This commit is contained in:
parent
b0c4eb6587
commit
1b6da830d2
1 changed files with 10 additions and 7 deletions
|
|
@ -11203,7 +11203,7 @@ architecture.")
|
|||
(define-public python-mathics-scanner
|
||||
(package
|
||||
(name "python-mathics-scanner")
|
||||
(version "1.4.1")
|
||||
(version "2.0.0")
|
||||
(source
|
||||
(origin
|
||||
(method git-fetch)
|
||||
|
|
@ -11213,7 +11213,7 @@ architecture.")
|
|||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"0y34kzqha5wp6n8cyvhhz47mq33x9kwi8ibj67q6pf08qslg154n"))))
|
||||
"1illmj40rynrhqwr5sfh2mkj2wnpvaqrmvlh56h7za3d823pf5jz"))))
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
(list
|
||||
|
|
@ -11225,15 +11225,18 @@ architecture.")
|
|||
(substitute* "mathics_scanner/version.py"
|
||||
(("__version__=\"[^\"]*\"")
|
||||
(string-append "__version__=\"" #$version "\"")))
|
||||
;; Generate JSON character/operator tables (character-tables.json,
|
||||
;; operators.json) which are pre-generated in the PyPI tarball
|
||||
;; but not in git. The Makefile runs this script before
|
||||
;; 'make dist'. Unlike in mathics-core, running the script here
|
||||
;; works because it writes to its own source tree being built;
|
||||
;; in mathics-core, the script tries to write to the installed
|
||||
;; python-mathics-scanner package which is not allowed.
|
||||
(invoke "bash" "./admin-tools/make-JSON-tables.sh")
|
||||
;; Missing installation of "operators.yml".
|
||||
(substitute* "pyproject.toml"
|
||||
(("\"data/named-characters.yml\",")
|
||||
"\"data/named-characters.yml\", \"data/operators.yml\","))
|
||||
;; Would cause a crash at runtime every time you select
|
||||
;; anything when running build_tables.py .
|
||||
(substitute* "mathics_scanner/generate/build_tables.py"
|
||||
(("\"operator-to-amslatex\",") "")))))))
|
||||
"\"data/named-characters.yml\", \"data/operators.yml\",")))))))
|
||||
(propagated-inputs (list python-chardet python-click python-pyyaml))
|
||||
(native-inputs (list python-pytest python-setuptools python-wheel))
|
||||
(home-page "https://mathics.org/")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue