diff --git a/srcpkgs/python3-etebase/patches/libssl_linking.patch b/srcpkgs/python3-etebase/patches/libssl_linking.patch new file mode 100644 index 00000000000..ea144ca7c48 --- /dev/null +++ b/srcpkgs/python3-etebase/patches/libssl_linking.patch @@ -0,0 +1,21 @@ +From 2767461bc4509440be3a9b8f553b9a0bea468e6b Mon Sep 17 00:00:00 2001 +From: Tom Hacohen +Date: Mon, 23 Nov 2020 11:59:53 +0200 +Subject: [PATCH] Dynamically link against libssl. + +--- + Cargo.toml | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/Cargo.toml b/Cargo.toml +index 5700454..d525653 100644 +--- a/Cargo.toml ++++ b/Cargo.toml +@@ -19,5 +19,4 @@ log = "^0.4.6" + + [dependencies] + cpython = { version = "0.7", features = ["extension-module"] } +-openssl = { version = "0.10.30", features = ["vendored"] } + etebase = { version = "^0.5.1" } +-- +2.28.0 diff --git a/srcpkgs/python3-etebase/template b/srcpkgs/python3-etebase/template new file mode 100644 index 00000000000..512a43e824b --- /dev/null +++ b/srcpkgs/python3-etebase/template @@ -0,0 +1,29 @@ +# Template file for 'python3-etebase' +pkgname=python3-etebase +version=0.31.5 +revision=1 +archs="x86_64" +wrksrc="etebase-py-${version}" +build_style=python3-module +build_helper="rust" +hostmakedepends="python3-setuptools python3-wheel python3-setuptools-rust cargo" +makedepends="libsodium libsodium-devel openssl-devel pkg-config" +depends="python3-msgpack openssl" +checkdepends="python3-pytest python3-pytest ${depends}" +short_desc="Python library for Etebase" +maintainer="DragonGhost7 " +license="BSD-3-Clause" +homepage="https://github.com/etesync/etebase-py/" +changelog="https://raw.githubusercontent.com/etesync/etebase-py/master/ChangeLog.md" +distfiles="https://github.com/etesync/etebase-py/archive/refs/tags/v${version}.tar.gz" +checksum=3f372b18cc518e04788ca553fb05989f77f393d041688a44f69b7b5b56d71048 +make_check=no #checking requires starting the server on localhost + +pre_build() { + vsed -i -e 's|.rustfmt_bindings(true);|.rustfmt_bindings(false);|' build.rs +#rustfmt binary is not present in the default cargo installation. +} + +post_install() { + vlicense LICENSE +}