summaryrefslogtreecommitdiffstats
path: root/src/jd/packages/python.scm
blob: 659a5ba2492e8d3144da4481acd4d5a9752bbfb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
(define-module (jd packages python)
  #:use-module (gnu packages fontutils)
  #:use-module (gnu packages gtk)
  #:use-module (gnu packages python)
  #:use-module (gnu packages python-build)
  #:use-module (gnu packages python-web)
  #:use-module (gnu packages python-xyz)
  #:use-module (gnu packages xml)

  #:use-module (guix build-system pyproject)
  #:use-module (guix build-system python)

  #:use-module (guix git-download)
  #:use-module (guix hg-download)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix packages))

(define-public python-svgwrite
  (package
    (name "python-svgwrite")
    (version "1.4.3")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/mozman/svgwrite")
             (commit "cd10a7ed1982de77ba85ff4556e154187d7f14bc")))
       (file-name (git-file-name name version))
       (sha256
        (base32 "14nvgsdhndpsgqlcp1vbmczd7rfyiddhjav2xja0a0rx2472psxq"))))
    (build-system python-build-system)
    (arguments
     (list
      #:tests? #f))
    (home-page "https://github.com/mozman/svgwrite")
    (synopsis "Library to create SVG drawings using Python")
    (description
     "Svgwrite is a pure-Python library for creating Scalable Vector Graphics (SVG)
files. It provides an object-oriented interface to build SVG drawings programmatically
without external dependencies. The library supports shapes, paths, gradients, and
style definitions compliant with the SVG 1.1 specification.")
    (license license:expat)))

(define-public python-rlpycairo
  (package
    (name "python-rlpycairo")
    (version "0.4.0")
    (source
     (origin
       (method hg-fetch)
       (uri (hg-reference
             (url "https://hg.reportlab.com/hg-public/rlPyCairo")
             (changeset "a3e9ae26d82d")))
       (file-name (git-file-name name version))
       (sha256
        (base32 "0c8px1538zwdr9hjhscv6y6k8mzlrr247f2jbsdjm4qfijchlc7n"))))
    (build-system pyproject-build-system)
    (arguments
     (list
      #:tests? #f))                     ; brak zestawu testów
    (propagated-inputs
     (list python-pycairo
           python-freetype-py
           python-reportlab))
    (native-inputs
     (list python-setuptools
           python-wheel))
    (home-page "https://hg.reportlab.com/hg-public/rlPyCairo")
    (synopsis "Cairo rendering plugin backend for ReportLab")
    (description
     "rlPyCairo is a ReportLab plugin that provides a Cairo-based rendering
backend for the @code{reportlab.graphics.renderPM} module.  It enables the
use of the PyCairo library for high-quality vector and raster rendering and
extends ReportLab's graphical output capabilities.")
    (license license:bsd-3)))

(define-public python-svglib
  (package
    (name "python-svglib")
    (version "1.6.0")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/deeplook/svglib")
             (commit "1f41cc64b9b56b0868d775cdeaee0c5413abbb41")))
       (file-name (git-file-name name version))
       (sha256
        (base32 "1qpn4gxfvzb326rwjz0xrrgz7r51pm1cw5xmzwjndhm6mxjbxayq"))))
    (build-system pyproject-build-system)
    (arguments
     (list
      #:tests? #f))
    (propagated-inputs
     (list python-cssselect2
           python-lxml
           python-reportlab
           python-rlpycairo
           python-tinycss2))
    (native-inputs
     (list python-hatchling))
    (home-page "https://github.com/deeplook/svglib")
    (synopsis "Pure-Python library for reading and converting SVG")
    (description
     "SVGLib is a pure-Python library for parsing and converting SVG (Scalable Vector Graphics)
files into PDF and other vector formats.  It relies on ReportLab for PDF generation
and supports modern CSS and XML standards.  It can be used both as a library and via
its command-line tool @code{svg2pdf}.")
    (license license:lgpl3+)))

(define-public python-reportlab
  (package
    (name "python-reportlab")
    (version "4.4.0")
    (source
     (origin
       (method hg-fetch)
       (uri (hg-reference
             (url "https://hg.reportlab.com/hg-public/reportlab")
             (changeset "7635eaecb27d")))
       (file-name (git-file-name name version))
       (sha256
        (base32 "0pmgms62khyjka3gj9y1f33vmlqgyzz1d4wlq3ysksdgxpn6hmcf"))))
    (build-system pyproject-build-system)
    (arguments
     (list
      #:tests? #f))
    (propagated-inputs
     (list python-pillow
           python-charset-normalizer))
    (native-inputs
     (list python-setuptools
           python-wheel))
    (home-page "https://www.reportlab.com/")
    (synopsis "Toolkit for generating PDFs and vector graphics in Python")
    (description
     "The ReportLab Toolkit is a mature, open-source library for generating
PDF documents and vector graphics directly from Python code.  It provides
high-level APIs for document layout, charts, barcodes, and graphics
composition, used in both open source and commercial applications.")
    (license license:bsd-3)))

(define-public python-potracer
  (package
    (name "python-potracer")
    (version "0.0.4")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/tatarize/potrace")
             (commit "769eadc85ab2ae6c3334686eaab0296fdfdf6abc")))
       (file-name (git-file-name name version))
       (sha256
        (base32 "0g5q2klz2r5spidzhk70y2jkg10yic2ka7j5ygks1sp6nrnhac9v"))))
    (build-system pyproject-build-system)
    (propagated-inputs
     (list python-numpy))
    (native-inputs (list python-setuptools))
    (arguments
     (list
      #:tests? #f))
    (home-page "https://github.com/tatarize/potrace")
    (synopsis "Python bindings for Potrace vectorization library")
    (description
     "Potracer is a Python wrapper for the Potrace vectorization library,
allowing conversion of bitmap images into scalable vector graphics.
It provides Pythonic access to path tracing and curve fitting
functionalities from the original Potrace project.")
    (license license:gpl2+)))