[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
21/26: gnu: Add python-olm.
From: |
guix-commits |
Subject: |
21/26: gnu: Add python-olm. |
Date: |
Mon, 18 Oct 2021 03:27:52 -0400 (EDT) |
lbraun pushed a commit to branch master
in repository guix.
commit 6addd57324fcb6fa008c9363685a596ca62b149a
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Sat Oct 16 10:56:48 2021 +0200
gnu: Add python-olm.
* gnu/packages/crypto.scm (python-olm): New variable.
---
gnu/packages/crypto.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm
index 64cdf48..823b888 100644
--- a/gnu/packages/crypto.scm
+++ b/gnu/packages/crypto.scm
@@ -72,6 +72,7 @@
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages python)
#:use-module (gnu packages python-xyz)
+ #:use-module (gnu packages python-check)
#:use-module (gnu packages readline)
#:use-module (gnu packages search)
#:use-module (gnu packages serialization)
@@ -91,6 +92,7 @@
#:use-module (guix build-system gnu)
#:use-module (guix build-system go)
#:use-module (guix build-system perl)
+ #:use-module (guix build-system python)
#:use-module (guix utils)
#:use-module (srfi srfi-1)
#:use-module (srfi srfi-26))
@@ -1280,6 +1282,39 @@ API.")
(home-page "https://matrix.org/docs/projects/other/olm/";)
(license license:asl2.0)))
+(define-public python-olm
+ (package
+ ;; python-olm is part of libolm and must be updated at the same time.
+ (inherit libolm)
+ (name "python-olm")
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'chdir
+ (lambda _
+ (chdir "python")))
+ (add-before 'build 'set-preprocessor
+ (lambda* (#:key inputs #:allow-other-keys)
+ (setenv "CPP" "gcc -E")))
+ (replace 'check
+ (lambda* (#:key tests? inputs outputs #:allow-other-keys)
+ (when tests?
+ (add-installed-pythonpath inputs outputs)
+ (invoke "pytest")))))))
+ (inputs `(("libolm" ,libolm)))
+ (propagated-inputs
+ `(("python-cffi" ,python-cffi)
+ ("python-future" ,python-future)))
+ (native-inputs
+ `(("python-pytest" ,python-pytest)
+ ("python-pytest-benchmark" ,python-pytest-benchmark)
+ ("python-aspectlib" ,python-aspectlib)))
+ (synopsis "Python bindings for libolm")
+ (description "The libolm library implements the Double Ratchet
+cryptographic ratchet. It is written in C and C++11, and exposed as a C
+API. This package contains its Python bindings.")))
+
(define-public hash-extender
(let ((commit "cb8aaee49f93e9c0d2f03eb3cafb429c9eed723d")
(revision "2"))
- 05/26: gnu: python-hyperframe: Update to 6.0.1., (continued)
- 05/26: gnu: python-hyperframe: Update to 6.0.1., guix-commits, 2021/10/18
- 03/26: gnu: python-pycryptodome: Update to 3.11.0., guix-commits, 2021/10/18
- 04/26: gnu: python-aiohttp-socks: Update to 0.6.0., guix-commits, 2021/10/18
- 06/26: gnu: python-h11: Update to 0.12.0., guix-commits, 2021/10/18
- 07/26: gnu: python-socks: Update to 1.2.4., guix-commits, 2021/10/18
- 08/26: gnu: python-hpack: Update to 4.0.0., guix-commits, 2021/10/18
- 09/26: gnu: python-h2: Update to 4.1.0., guix-commits, 2021/10/18
- 10/26: gnu: python-future: Update to 0.18.2., guix-commits, 2021/10/18
- 17/26: gnu: Add python-janus., guix-commits, 2021/10/18
- 18/26: gnu: Add python-logbook., guix-commits, 2021/10/18
- 21/26: gnu: Add python-olm.,
guix-commits <=
- 13/26: gnu: python-ukpostcodeparser: Update to 1.1.2., guix-commits, 2021/10/18
- 20/26: gnu: Add python-aspectlib., guix-commits, 2021/10/18
- 22/26: gnu: Add python-matrix-nio., guix-commits, 2021/10/18
- 12/26: gnu: python-faker: Update to 9.3.1., guix-commits, 2021/10/18
- 24/26: gnu: python-socks: Fix indentation., guix-commits, 2021/10/18
- 23/26: gnu: Add pantalaimon., guix-commits, 2021/10/18
- 26/26: gnu: python-xyz.scm: Add copyright line., guix-commits, 2021/10/18
- 25/26: gnu: python-faker: Fix indentation., guix-commits, 2021/10/18
- 15/26: gnu: Add python-atomicwrites-1.4., guix-commits, 2021/10/18
- 11/26: gnu: python-curio: Update to 1.5., guix-commits, 2021/10/18