[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#43443] [PATCH] gnu: Add python-pypandoc.
From: |
Konrad Hinsen |
Subject: |
[bug#43443] [PATCH] gnu: Add python-pypandoc. |
Date: |
Thu, 17 Sep 2020 09:24:57 +0200 |
* gnu/packages/python-xyz.scm (python-pypandoc): New variable.
---
gnu/packages/python-xyz.scm | 43 +++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 593bb3f468..147c3bccb8 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -129,6 +129,7 @@
#:use-module (gnu packages gsasl)
#:use-module (gnu packages gstreamer)
#:use-module (gnu packages gtk)
+ #:use-module (gnu packages haskell-xyz)
#:use-module (gnu packages icu4c)
#:use-module (gnu packages image)
#:use-module (gnu packages imagemagick)
@@ -21979,3 +21980,45 @@ dates in almost any string formats commonly found on
web pages.")
(description "Safety checks installed dependencies for known
vulnerabilities.
By default it uses the open Python vulnerability database Safety DB.")
(license license:expat)))
+
+(define-public python-pypandoc
+ (package
+ (name "python-pypandoc")
+ (version "1.5")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pypandoc" version))
+ (sha256
+ (base32
+ "1zvn9764cf7kkjkmr9gw6wc8adpk06qxr1rhxwa9pg0zmdvrk90l"))))
+ (build-system python-build-system)
+ (inputs
+ `(("pandoc" ,pandoc)
+ ("pandoc-citeproc" ,pandoc-citeproc)))
+ (propagated-inputs
+ `(("wheel" ,python-wheel)))
+ (native-inputs
+ `(("texlive" ,(texlive-union (list texlive-amsfonts
+ texlive-fonts-ec
+ texlive-latex-hyperref
+ texlive-latex-oberdiek
+ 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"))
+ ;; Needed by texlive-union to generate fonts
+ (setenv "HOME" "/tmp")
+ #t)))))
+ (home-page "https://github.com/bebraw/pypandoc")
+ (synopsis "Python wrapper for pandoc")
+ (description "The package pypandoc is a thin Python wrapper around
+pandoc and pandoc-citeproc.")
+ (license license:expat)))
--
2.28.0
- [bug#43443] [PATCH] gnu: Add python-pypandoc., Konrad Hinsen, 2020/09/16
- [bug#43443] [PATCH] gnu: Add python-pypandoc., Ricardo Wurmus, 2020/09/16
- [bug#43443] [PATCH] gnu: Add python-pypandoc., Konrad Hinsen, 2020/09/16
- [bug#43443] [PATCH] gnu: Add python-pypandoc., Ricardo Wurmus, 2020/09/16
- [bug#43443] [PATCH] gnu: Add python-pypandoc., Konrad Hinsen, 2020/09/16
- [bug#43443] [PATCH] gnu: Add python-pypandoc., Konrad Hinsen, 2020/09/16
- [bug#43443] [PATCH] gnu: Add python-pypandoc., Ricardo Wurmus, 2020/09/16
- [bug#43443] [PATCH] gnu: Add python-pypandoc., Konrad Hinsen, 2020/09/17
- bug#43443: [PATCH] gnu: Add python-pypandoc., Ricardo Wurmus, 2020/09/17
- [bug#43443] [PATCH] gnu: Add python-pypandoc.,
Konrad Hinsen <=