gnu: python-pypandoc: Adjust package style, fix build.

* gnu/packages/python-xyz.scm (python-pypandoc): Use G-expressions,
shift order of entries, remove labels from inputs.
[build-system]: Swap to pyproject-build-system.
[native-inputs]: Add python-poetry-core, texlive-etoolbox.

Change-Id: Ib4eac5fde9d56fffd7bd18a11cf653d05d5ff45b
This commit is contained in:
Sharlatan Hellseher 2024-10-04 13:18:52 +01:00
parent 84339e1fb5
commit 725e57a56a
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -32413,23 +32413,25 @@ (define-public python-pypandoc
(sha256 (sha256
(base32 (base32
"0l6a8ngzpx363q2jskxxkx6psfhqrvc4js80dmn16r3vw6m2cb40")))) "0l6a8ngzpx363q2jskxxkx6psfhqrvc4js80dmn16r3vw6m2cb40"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(add-before 'check 'disable-tests
(lambda _
;; Disable test requiring network access
(substitute* "tests.py"
(("test_basic_conversion_from_http_url")
"skip_test_basic_conversion_from_http_url")))))))
(native-inputs
(list python-poetry-core
(texlive-updmap.cfg
(list texlive-etoolbox texlive-lm texlive-xcolor))))
(inputs (inputs
(list pandoc python-pandocfilters)) (list pandoc python-pandocfilters))
(propagated-inputs (propagated-inputs
`(("wheel" ,python-wheel))) (list python-wheel))
(native-inputs
`(("texlive" ,(texlive-updmap.cfg (list texlive-lm texlive-xcolor)))))
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'check 'disable-tests
(lambda _
;; Disable test requiring network access
(substitute* "tests.py"
(("test_basic_conversion_from_http_url")
"skip_test_basic_conversion_from_http_url"))
#t)))))
(home-page "https://github.com/bebraw/pypandoc") (home-page "https://github.com/bebraw/pypandoc")
(synopsis "Python wrapper for pandoc") (synopsis "Python wrapper for pandoc")
(description "pypandoc is a thin Python wrapper around pandoc (description "pypandoc is a thin Python wrapper around pandoc