summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-olm
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/python-olm')
-rw-r--r--pkgs/development/python-modules/python-olm/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/python-olm/default.nix b/pkgs/development/python-modules/python-olm/default.nix
new file mode 100644
index 000000000000..4fc0ad66f95b
--- /dev/null
+++ b/pkgs/development/python-modules/python-olm/default.nix
@@ -0,0 +1,29 @@
+{ lib, buildPythonPackage, olm,
+ cffi, future, typing }:
+
+buildPythonPackage {
+ pname = "python-olm";
+ inherit (olm) src version;
+
+ sourceRoot = "${olm.name}/python";
+ buildInputs = [ olm ];
+
+ preBuild = ''
+ make include/olm/olm.h
+ '';
+
+ propagatedBuildInputs = [
+ cffi
+ future
+ typing
+ ];
+
+ doCheck = false;
+
+ meta = with lib; {
+ description = "Python bindings for Olm";
+ homepage = "https://gitlab.matrix.org/matrix-org/olm/tree/master/python";
+ license = olm.meta.license;
+ maintainers = [ maintainers.tilpner ];
+ };
+}