about summary refs log tree commit diff
path: root/pkgs/development/python-modules/python-olm
diff options
context:
space:
mode:
authortilpner <till@hoeppner.ws>2019-11-15 15:19:31 +0100
committerJon <jonringer@users.noreply.github.com>2019-11-16 23:06:50 -0800
commit58a4eccf00b68596f9aae3f8e47aaa45641d4dde (patch)
tree9951530a419b27451dacb93a8e54d1365c2c1d15 /pkgs/development/python-modules/python-olm
parent58e573d35877f649047d8d119683ed7444252ce0 (diff)
python3Packages.python-olm: init at (automatic) 3.1.4
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 0000000000000..4fc0ad66f95b4
--- /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 ];
+  };
+}