@@ -1310,13 +1310,30 @@ Trusted comments are signed, thus verified, before being displayed.")
"0bixly6jqpwfx3p37c1qp1j685yg6m429r1nazwh43w4n527bs3y"))
(file-name (git-file-name name version))))
(build-system cmake-build-system)
+ (outputs '("out" "python"))
+ (propagated-inputs
+ `(("python-cffi" ,python-cffi)))
+ (native-inputs
+ `(("python" ,python-wrapper)))
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(with-directory-excursion "tests"
- (invoke "ctest" ".")))))))
+ (invoke "ctest" "."))))
+ (add-after 'install 'install-python-binding
+ (lambda* (#:key outputs #:allow-other-keys)
+ (with-directory-excursion "../source/python"
+ (invoke "make" "headers" "CPP=cpp") ;; Somehow default $(CPP) is cc?
+ (invoke "python" "setup.py" "build_ext"
+ (string-append "--library-dirs="
+ (assoc-ref outputs "out")
+ "/lib"))
+ (invoke "python" "setup.py" "install"
+ (string-append "--prefix="
+ (assoc-ref outputs "python"))
+ "--root=/")))))))
(synopsis "Implementation of the olm and megolm cryptographic ratchets")
(description "The libolm library implements the Double Ratchet
cryptographic ratchet. It is written in C and C++11, and exposed as a C