~ruther/guix-local

eb7f49785c3e2319e0a616c2d753389391fca04b — Nicolas Graves 5 months ago 84c0b44
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>
1 files changed, 24 insertions(+), 10 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +24 -10
@@ 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