[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#71787] [PATCH 10/12] gnu: Add python-svglib.
From: |
David Elsing |
Subject: |
[bug#71787] [PATCH 10/12] gnu: Add python-svglib. |
Date: |
Wed, 26 Jun 2024 19:27:03 +0000 |
* gnu/packages/python-xyz.scm (python-svglib): New variable.
---
gnu/packages/python-xyz.scm | 41 +++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 111a3dd56c..d1385ffdef 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -29611,6 +29611,47 @@ (define-public python-cairosvg
qvarious formats: PDF, PostScript, PNG and even SVG.")
(license license:lgpl3+)))
+(define-public python-svglib
+ (package
+ (name "python-svglib")
+ (version "1.5.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "svglib" version))
+ (sha256
+ (base32 "11z5jl38zjbzrmdly197m5x6303axcnlrlml1w6fd7j0m79nbrrs"))))
+ (build-system pyproject-build-system)
+ (propagated-inputs
+ (list python-cssselect2
+ python-lxml
+ python-reportlab
+ python-tinycss2))
+ (native-inputs
+ (list python-pytest))
+ (arguments
+ (list
+ #:phases
+ '(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? inputs outputs #:allow-other-keys)
+ (if tests?
+ (setenv "PYTHONPATH" (getcwd))
+ (invoke
+ "pytest" "-vv"
+ ;; These tests download additional data
+ "--deselect"
+ "tests/test_samples.py::TestW3CSVG::test_convert_pdf_png"
+ "--deselect"
+ (string-append
+ "tests/test_samples.py::TestWikipediaFlags"
+ "::test_convert_pdf"))))))))
+ (home-page "https://github.com/deeplook/svglib")
+ (synopsis "Python library for reading and converting SVG files")
+ (description "This package provides a pure-Python library for reading SVG
+files and converting them to other formats.")
+ (license license:lgpl3+)))
+
(define-public python-pyphen
(package
(name "python-pyphen")
--
2.45.1
- [bug#71787] [PATCH 00/12] Update and unbundle ghostscript and mupdf, David Elsing, 2024/06/26
- [bug#71787] [PATCH 01/12] gnu: Add lcms2mt., David Elsing, 2024/06/26
- [bug#71787] [PATCH 10/12] gnu: Add python-svglib.,
David Elsing <=
- [bug#71787] [PATCH 04/12] gnu: ijs: Remove unneeded files and build shared library., David Elsing, 2024/06/26
- [bug#71787] [PATCH 09/12] gnu: Add python-pymupdf., David Elsing, 2024/06/26
- [bug#71787] [PATCH 05/12] gnu: ghostscript: Unbundle dependencies and remove non-free parts., David Elsing, 2024/06/26
- [bug#71787] [PATCH 02/12] gnu: Add memento., David Elsing, 2024/06/26
- [bug#71787] [PATCH 08/12] gnu: Add mupdf/tesseract., David Elsing, 2024/06/26
- [bug#71787] [PATCH 11/12] gnu: Add python-rst2pdf., David Elsing, 2024/06/26
- [bug#71787] [PATCH 03/12] gnu: Add extract., David Elsing, 2024/06/26
- [bug#71787] [PATCH 07/12] gnu: mupdf: Update to 1.24.4 and unbundle remaining dependencies., David Elsing, 2024/06/26
- [bug#71787] [PATCH 06/12] gnu: Add ghostscript/tesseract., David Elsing, 2024/06/26
- [bug#71787] [PATCH 12/12] gnu: Add ghostscript-documentation., David Elsing, 2024/06/26