mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-fontmath: Switch to git-fetch.
* gnu/packages/fontutils.scm (python-fontmath): [source]: Switch to git-fetch. [arguments]<#:phases>: Add 'set-version phase. Change-Id: I11f79c33b260819b6087e96665bcff188ab060f6 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
parent
b5a672c758
commit
56c06f9cf9
1 changed files with 13 additions and 3 deletions
|
@ -619,11 +619,21 @@ to generate OpenType font binaries from Unified Font Objects (UFOs).")
|
|||
(version "0.9.4")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (pypi-uri "fontMath" version ".zip"))
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/robotools/fontMath")
|
||||
(commit version)))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32 "197dgbnhg6n937ifsi3w9dm283wi3nwp35y4qc2i6kkqkl61kn8z"))))
|
||||
(base32 "0g8vpwn4flg0rj7ar8wl9xlpjhcgiz01p56fzkjdlf2jqb36akyy"))))
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'set-version
|
||||
(lambda _
|
||||
(setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
|
||||
(propagated-inputs (list python-fonttools-minimal))
|
||||
(native-inputs
|
||||
(list python-pytest
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue