mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-29 12:41:09 -06:00
gnu: python-citeproc-py: Update to 0.9.0.
* gnu/packages/python-xyz.scm (python-citeproc-py): Update to 0.9.0. [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments]:<#:phases>: Add phase 'set-version. [native-inputs]: Add python-pytest, python-setuptools. Change-Id: Idbdf85b7d9ce288012072839007355ce65c8e6dc Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
parent
84c0b440cd
commit
eb7f49785c
1 changed files with 24 additions and 10 deletions
|
|
@ -31212,19 +31212,33 @@ equivalent schemata in the XML-based default RELAX NG syntax.")
|
|||
(define-public python-citeproc-py
|
||||
(package
|
||||
(name "python-citeproc-py")
|
||||
(version "0.5.1")
|
||||
(version "0.9.0")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (pypi-uri "citeproc-py" version))
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/brechtm/citeproc-py")
|
||||
(commit (string-append "v" version))
|
||||
(recursive? #t))) ; TODO Unbundle.
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"00aaff50jy4j0nakdzq9258z1gzrac9baarli2ymgspj88jg5968"))))
|
||||
(build-system python-build-system)
|
||||
(propagated-inputs
|
||||
(list python-lxml python-rnc2rng))
|
||||
(home-page
|
||||
"https://github.com/brechtm/citeproc-py")
|
||||
(base32 "0wn1mfn7r4ffbmh529baqa4a798xwa34z0ij1jkmzal9i1na1i61"))))
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'set-version
|
||||
(lambda _
|
||||
(delete-file "citeproc/_version.py")
|
||||
(substitute* "citeproc/__init__.py"
|
||||
(("from \\. import version")
|
||||
"")
|
||||
(("__version__ =.*")
|
||||
(format #f "__version__ = ~s" #$version))))))))
|
||||
(native-inputs (list python-pytest python-setuptools))
|
||||
(propagated-inputs (list python-lxml python-rnc2rng))
|
||||
(home-page "https://github.com/brechtm/citeproc-py")
|
||||
(synopsis "Citations and bibliography formatter")
|
||||
(description
|
||||
"Citeproc-py is a CSL processor for Python. It aims to implement the
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue