From 1ebe34cd17af9ff80e911708098785122bd98945 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sun, 26 Oct 2025 10:46:52 +0100 Subject: [PATCH] gnu: python-gh-md-to-html: Remove python-shellescape input. * gnu/packages/python-xyz.scm (python-gh-md-to-html) [arguments]<#:phases>: Add phase 'relax-shellescape-requirement. [propagated-inputs]: Remove python-shellescape. [native-inputs]: Remove python-wheel. Change-Id: I4cfeba99b42287ca6b83b00091ae3431928625ba Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-xyz.scm | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 0d9f1fd7e95c0e6af883dfe4aa43f1c33bba0a43..0fc2af65c3f8ed616304714da9e36bc383855686 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -3862,15 +3862,28 @@ structure or other iterative computation.") (sha256 (base32 "1cnaqnckpcrpc4b8ba18s5ds05w1yfiszcp7ql7pmx0jnrj25qax")))) (build-system pyproject-build-system) - (arguments (list #:tests? #false)) ;there are none + (arguments + (list + #:tests? #false ;there are none + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'relax-shellescape-requirement + (lambda _ + (substitute* "src/__init__.py" + (("import shellescape") + "import shlex") + (("shellescape\\.quote") + "shlex.quote")) + (substitute* "setup.py" + (("\"shellescape\",") + ""))))))) (propagated-inputs (list python-beautifulsoup4 python-emoji-for-gh-md-to-html python-pillow python-requests - python-shellescape python-webcolors)) - (native-inputs (list python-setuptools python-wheel)) + (native-inputs (list python-setuptools)) (home-page "https://github.com/phseiff/github-flavored-markdown-to-html/") (synopsis "Github-flavored Markdown") (description