From eb7f49785c3e2319e0a616c2d753389391fca04b Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Fri, 21 Nov 2025 17:33:14 +0100 Subject: [PATCH] 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 --- gnu/packages/python-xyz.scm | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 63f28d800856dfdd3a13703b0384aab732489ffe..f2fe3530a2735358a525951613442d74c5753c49 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -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