~whereiseveryone/guixrus

guixrus/guixrus/packages/libervia.scm -rw-r--r-- 16.3 KiB
2c1183b8jgart add bangs 2 days ago
                                                                                
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
;;; GNU Guix --- Functional package management for GNU
;;;
;;; Copyright © 2021 BonfaceKilz <me@bonfacemunyoki.com>
;;; Copyright © 2021 Raghav Gururajan <rg@raghavgururajan.name>
;;; Copyright © 2022 paladhammika <paladhammika@protonmail.com>
;;; Copyright © 2021, 2022 jgart <jgart@dismail.de>
;;; This file is not part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (guixrus packages libervia)
  #:use-module (guix build-system copy)
  #:use-module (guix build-system python)
  #:use-module (guix build-system pyproject)
  #:use-module (guix build-system cmake)
  #:use-module (guix download)
  #:use-module (guix gexp)
  #:use-module (guix git-download)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix packages)
  #:use-module (guix utils)
  #:use-module (gnu packages python)
  #:use-module (gnu packages python-build)
  #:use-module (gnu packages python-check)
  #:use-module (gnu packages python-crypto)
  #:use-module (gnu packages python-web)
  #:use-module (gnu packages python-xyz)
  #:use-module (gnu packages xml)
  #:use-module (gnu packages time)
  #:use-module (gnu packages music)
  #:use-module (gnu packages glib)
  #:use-module (gnu packages freedesktop)
  #:use-module (gnu packages libffi)
  #:use-module (gnu packages protobuf)
  #:use-module (gnu packages crypto)
  #:use-module (gnu packages check)
  #:use-module (gnu packages sphinx)
  #:use-module ((guixrus licenses) #:prefix license:)
  #:use-module ((guixrus packages common python) #:prefix rus:))

(define-public python-x3dh
  (package
    (name "python-x3dh")
    (version "1.0.3")
    (source (origin
              (method url-fetch)
              (uri (pypi-uri "X3DH" version))
              (sha256
               (base32
                "1mamwl6spwbf5s69519r5gyck4h5jdl0jibirqd4k18nw0c5799s"))))
    (build-system python-build-system)
    (arguments '(#:tests? #f))
    (propagated-inputs (list python-cryptography python-pydantic
                             python-typing-extensions python-xeddsa))
    (home-page "https://github.com/Syndace/python-x3dh")
    (synopsis
     "A Python implementation of the Extended Triple Diffie-Hellman key agreement protocol.")
    (description
     "This package provides a Python implementation of the Extended Triple
Diffie-Hellman key agreement protocol.")
    (license license:expat)))

(define-public python-omemo
  (package
    (name "python-omemo")
    (version "1.0.2")
    (source (origin
              (method url-fetch)
              (uri (pypi-uri "OMEMO" version))
              (sha256
               (base32
                "0w5d08qmvcs9rnansy4il654ya4qg171kdj61nw4b0idsdr5aw4z"))))
    (build-system python-build-system)
    (propagated-inputs (list python-typing-extensions python-xeddsa))
    (home-page "https://github.com/Syndace/python-omemo")
    (synopsis
     "A Python implementation of the OMEMO Multi-End Message and Object Encryption protocol.")
    (description
     "This package provides a Python implementation of the OMEMO Multi-End Message and
Object Encryption protocol.")
    (license license:expat)))

(define-public python-doubleratchet
  (package
    (name "python-doubleratchet")
    (version "1.0.3")
    (source (origin
              (method url-fetch)
              (uri (pypi-uri "DoubleRatchet" version))
              (sha256
               (base32
                "0mih190gsz9afcyvx2ny92lg96fzgrxzhmp16ajznamkybx8clg2"))))
    (build-system python-build-system)
    (arguments '(#:tests? #f))
    (propagated-inputs (list python-cryptography python-pydantic
                             python-typing-extensions))
    (home-page "https://github.com/Syndace/python-doubleratchet")
    (synopsis "A Python implementation of the Double Ratchet algorithm.")
    (description
     "This package provides a Python implementation of the Double Ratchet algorithm.")
    (license license:expat)))

(define-public libxeddsa
  (package
    (name "libxeddsa")
    (version "2.0.0")
    (source
     (origin
       (method git-fetch)
       (uri
        (git-reference
         (url "https://github.com/Syndace/libxeddsa")
         (commit (string-append "v" version))))
       (sha256
        (base32 "1abhf0d2lp2sf1ykdzbifngkp2y6h6w5slbqvnbsaazzi8n7v44a"))))
    (build-system cmake-build-system)
    (arguments
      (list
        #:phases
        #~(modify-phases %standard-phases
            (replace 'install
              (lambda _
                (copy-file "../source/bin/libcombined_static.a" "libxeddsa.a")
                (install-file "libxeddsa.a"
                              (string-append #$output "/lib/")))))))
    (inputs (list libsodium))
    (synopsis "A toolkit around Curve25519 and Ed25519 key pairs, with a focus on conversion between the two.")
    (description "")
    (home-page "https://github.com/Syndace/libxeddsa")
    (license license:expat)))

(define-public python-xeddsa
  (package
    (name "python-xeddsa")
    (version "1.0.2")
    (source (origin
              (method url-fetch)
              (uri (pypi-uri "XEdDSA" version))
              (sha256
               (base32
                "05c7rxjf0js70xsyxzy4z6w60zm6g8v77v733nczaqbj1ibxjx49"))))
    (build-system python-build-system)
    (arguments '(#:tests? #f))
    (inputs (list libsodium libxeddsa))
    (propagated-inputs (list python-cffi))
    (home-page "https://github.com/Syndace/python-xeddsa")
    (synopsis "Python bindings to libxeddsa.")
    (description "Python bindings to libxeddsa.")
    (license license:expat)))

(define-public python-typing-extensions
  (package
    (name "python-typing-extensions")
    (version "4.4.0")
    (source (origin
              (method git-fetch)
              (uri (git-reference
                    (url "https://github.com/python/typing_extensions")
                    (commit version)))
              (file-name (git-file-name name version))
              (sha256
               (base32
                "0ax95a956ghhdxlp5xxhmpk4kw04jm4bxlp2fqvnv5da8a9kg7jz"))))
    (build-system python-build-system)
    (arguments
     (list
      #:tests? #f       ;requires Python's test module, not available in Guix
      #:phases
      #~(modify-phases %standard-phases
          ;; XXX: PEP 517 manual build copied from python-isort.
          (replace 'build
            (lambda _
              (invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
          (replace 'check
            (lambda* (#:key tests? #:allow-other-keys)
              (when tests?
                (invoke "python" "src/test_typing_extensions.py"))))
          (replace 'install
            (lambda _
              (let ((whl (car (find-files "dist" "\\.whl$"))))
                (invoke "pip" "--no-cache-dir" "--no-input"
                        "install" "--no-deps" "--prefix" #$output whl)))))))
    (native-inputs (list python-pypa-build python-flit-core))
    (home-page "https://github.com/python/typing/typing_extensions")
    (synopsis "Experimental type hints for Python")
    (description
     "The typing_extensions module contains additional @code{typing} hints not
yet present in the of the @code{typing} standard library.
Included are implementations of:
@enumerate
@item ClassVar
@item ContextManager
@item Counter
@item DefaultDict
@item Deque
@item NewType
@item NoReturn
@item overload
@item Protocol
@item runtime
@item Text
@item Type
@item TYPE_CHECKING
@item AsyncGenerator
@end enumerate\n")
    (license license:psfl)))

(define-public python-omemo
  (package
    (name "python-omemo")
    (version "1.0.2")
    (source (origin
              (method url-fetch)
              (uri (pypi-uri "OMEMO" version))
              (sha256
               (base32
                "0w5d08qmvcs9rnansy4il654ya4qg171kdj61nw4b0idsdr5aw4z"))))
    (build-system python-build-system)
    (arguments '(#:tests? #f))
    (propagated-inputs (list python-typing-extensions python-xeddsa))
    (home-page "https://github.com/Syndace/python-omemo")
    (synopsis
     "A Python implementation of the OMEMO Multi-End Message and Object Encryption protocol.")
    (description
     "This package provides a Python implementation of the OMEMO Multi-End Message and
Object Encryption protocol.")
    (license license:expat)))

(define-public python-urwid-satext
  (package
    (name "python-urwid-satext")
    (version "0.8.0")
    (source (origin
              (method url-fetch)
              (uri (pypi-uri "urwid_satext" version))
              (sha256
               (base32
                "00mzdn15vn6k02j126cvbfxak75zckmmkf9ga5qv5h3hai1hpa75"))))
    (build-system python-build-system)
    (propagated-inputs (list python-urwid))
    (home-page "https://wiki.goffi.org/w/index.php/Urwid-satext")
    (synopsis "SàT extension widgets for Urwid")
    (description "SàT extension widgets for Urwid")
    (license license:lgpl2.1)))

(define-public python-cython-test-exception-raiser
  (package
    (name "python-cython-test-exception-raiser")
    (version "1.0.2")
    (source (origin
              (method url-fetch)
              (uri (pypi-uri "cython-test-exception-raiser" version))
              (sha256
               (base32
                "1amx3x4nrw5xc7s3k4jsc6yb6pnvzhlx7bpms8i84yh545ikl065"))))
    (build-system python-build-system)
    (propagated-inputs (list python-cython))
    (home-page "https://github.com/twisted/cython-test-exception-raiser")
    (synopsis "A trivial extension that just raises an exception.")
    (description
     "This package provides a trivial extension that just raises an exception.")
    (license license:expat)))

(define-public python-towncrier
  (package
    (name "python-towncrier")
    (version "22.8.0")
    (source (origin
              (method url-fetch)
              (uri (pypi-uri "towncrier" version))
              (sha256
               (base32
                "1js2s02kxsm7ln3z5j8c7j9k293hzm6bg0nzapxlb6w56fq3jf3x"))))
    (build-system python-build-system)
    (propagated-inputs (list python-click
                             python-click-default-group
                             python-incremental
                             python-jinja2
                             python-setuptools
                             python-tomli))
    (native-inputs (list python-packaging))
    (home-page "https://github.com/hawkowl/towncrier")
    (synopsis "Building newsfiles for your project.")
    (description "Building newsfiles for your project.")
    (license license:expat)))

(define-public python-sphinx-basic-ng
  (package
    (name "python-sphinx-basic-ng")
    (version "1.0.0b1")
    (source (origin
              (method url-fetch)
              (uri (pypi-uri "sphinx_basic_ng" version))
              (sha256
               (base32
                "1c59nmxzqxga8lc42krd1yb9k3kir0l1wy462wq2lifrrk9lndw9"))))
    (build-system python-build-system)
    (propagated-inputs (list python-sphinx))
    (home-page "https://github.com/pradyunsg/sphinx-basic-ng")
    (synopsis "A modern skeleton for Sphinx themes.")
    (description "This package provides a modern skeleton for Sphinx themes.")
    (license #f)))

(define-public python-service-identity
  (package
    (name "python-service-identity")
    (version "21.1.0")
    (source (origin
              (method url-fetch)
              (uri (pypi-uri "service-identity" version))
              (sha256
               (base32
                "0d4x84crbz0a17d8gi90z6zlxwm9pslc65rx0cdw2797ra360v3f"))))
    (build-system python-build-system)
    (propagated-inputs (list python-attrs
                             python-cryptography
                             python-ipaddress
                             python-pyasn1
                             python-pyasn1-modules
                             python-six))
    (native-inputs (list python-coverage
                         python-idna
                         python-pyopenssl
                         python-pytest
                         python-sphinx))
    (home-page "https://service-identity.readthedocs.io/")
    (synopsis "Service identity verification for pyOpenSSL & cryptography.")
    (description "Service identity verification for pyOpenSSL & cryptography.")
    (license license:expat)))

(define-public python-wokkel
  (package
    (name "python-wokkel")
    (version "18.0.0")
    (source (origin
              (method url-fetch)
              (uri (pypi-uri "wokkel" version))
              (sha256
               (base32
                "1spq44gg8gsviqx1dvlmjpgfc0wk0jpyx4ap01y2pad1ai9cw016"))))
    (build-system python-build-system)
    (arguments '(#:tests? #f))
    (propagated-inputs (list python-dateutil python-incremental python-twisted python-service-identity))
    (native-inputs (list python-coverage python-pyflakes
                         python-sphinx python-towncrier))
    (home-page "https://wokkel.ik.nu/")
    (synopsis "Twisted Jabber support library")
    (description "Twisted Jabber support library")
    (license license:expat)))

(define-public python-sat-tmp
  (package
    (name "python-sat-tmp")
    (version "0.8.0")
    (source (origin
              (method url-fetch)
              (uri (pypi-uri "sat_tmp" version))
              (sha256
               (base32
                "0nj6qqx8qvg5l805vh32zvjqwlg4gwckwm569wc69hhzym7dq393"))))
    (build-system python-build-system)
    (arguments '(#:tests? #f))
    (propagated-inputs (list python-wokkel python-pyopenssl))
    (home-page "https://salut-a-toi.org")
    (synopsis "Libervia temporary third party patches")
    (description "Libervia temporary third party patches")
    (license license:agpl3)))

(define-public libervia-backend
  (package
    (name "libervia-backend")
    (version "0.8.0")
    (source (origin
              (method url-fetch)
              (uri (pypi-uri "libervia-backend" version))
              (sha256
               (base32
                "1k2hxggplcg73qik8bax9hiycjcb9kyc6czi48ahnzm5dbda5nis"))))
    (build-system python-build-system)
    (arguments
      (list
        #:tests? #f
        #:phases
        #~(modify-phases %standard-phases
            (delete 'sanity-check)
            (add-after 'unpack 'fix-deps
              (lambda _
                (substitute* "setup.py"
                  ((".*dbus-python.*") "")
                  ((".*langid.*") "")
                  ((".*miniupnpc.*") "'miniupnpc',")
                  ((".*pygobject.*") "'pygobject',")
                  ((".*pyopenssl.*") "'pyopenssl',")
                  ((".*twisted.*tls.*") "'twisted[tls]',")
                  ((".*omemo >= 0.11.*") "'omemo',")
                  ((".*omemo-backend-signal.*") "")))))))
    (propagated-inputs (list python-babel
                             python-cairosvg
                             python-cryptography
                             python-dateutil
                             python-dbus
                             python-html2text
                             python-jinja2
                             python-lxml
                             python-markdown
                             python-miniupnpc
                             python-mutagen
                             python-netifaces
                             python-omemo
                             python-pillow
                             python-potr
                             python-progressbar2
                             python-pygments
                             python-pygobject
                             python-pyopenssl
                             python-pyxdg
                             python-pyyaml-5
                             python-sat-tmp
                             python-shortuuid
                             python-treq
                             python-twisted
                             python-urwid
                             python-urwid-satext
                             python-wokkel))
    (home-page "https://salut-a-toi.org")
    (synopsis "Libervia multipurpose and multi frontend XMPP client")
    (description "Libervia multipurpose and multi frontend XMPP client")
    (license license:agpl3)))