aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormeator <meator.dev@gmail.com>2024-04-13 07:06:12 +0000
committerLuca Matei Pintilie <luca@lucamatei.com>2024-04-13 09:07:13 +0000
commitca8b9f692f9bff26da721975512232381c9989da (patch)
tree3dffcf9fed495612f6e39cdbcda507695ccc4248
parentc704431608f9e8df8b79b14e77fb3d693e9cd521 (diff)
downloadvoid-packages-weechat-matrix.tar
void-packages-weechat-matrix.tar.gz
void-packages-weechat-matrix.tar.bz2
void-packages-weechat-matrix.tar.lz
void-packages-weechat-matrix.tar.xz
void-packages-weechat-matrix.tar.zst
void-packages-weechat-matrix.zip
UNFINISHED: New package: weechat-matrix-0.3.0weechat-matrix
-rw-r--r--srcpkgs/weechat-matrix/patches/fix-poetry.diff14
-rw-r--r--srcpkgs/weechat-matrix/template21
2 files changed, 35 insertions, 0 deletions
diff --git a/srcpkgs/weechat-matrix/patches/fix-poetry.diff b/srcpkgs/weechat-matrix/patches/fix-poetry.diff
new file mode 100644
index 00000000000..0c0d3480c80
--- /dev/null
+++ b/srcpkgs/weechat-matrix/patches/fix-poetry.diff
@@ -0,0 +1,14 @@
+Taken from https://github.com/poljar/weechat-matrix/pull/340
+
+diff --git a/pyproject.toml b/pyproject.toml
+index 709adf1..d3292af 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -31,5 +31,5 @@ matrix_sso_helper = ["aiohttp"]
+ matrix_upload = ["python-magic", "requests"]
+
+ [build-system]
+-requires = ["poetry>=0.12"]
+-build-backend = "poetry.masonry.api"
++requires = ["poetry-core>=1.0.0"]
++build-backend = "poetry.core.masonry.api"
diff --git a/srcpkgs/weechat-matrix/template b/srcpkgs/weechat-matrix/template
new file mode 100644
index 00000000000..1ac22d3892e
--- /dev/null
+++ b/srcpkgs/weechat-matrix/template
@@ -0,0 +1,21 @@
+# Template file for 'weechat-matrix'
+pkgname=weechat-matrix
+version=0.3.0
+revision=1
+build_style=python3-pep517
+hostmakedepends="python3-poetry-core"
+depends="python3 python3-openssl python3-webcolors python3-atomicwrites
+ python3-attrs python3-logbook python3-Pygments python3-matrix-nio
+ python3-aiohttp python3-magic python3-requests"
+checkdepends="$depends python3-pytest"
+short_desc="Weechat Matrix protocol script written in python"
+maintainer="meator <meator.dev@gmail.com>"
+license="ISC"
+homepage="https://github.com/poljar/weechat-matrix"
+distfiles="https://github.com/poljar/weechat-matrix/archive/refs/tags/${version}.tar.gz"
+checksum=4a7942ec976dc6081ebb689cb0dc0f02f8ab9d24121f98c6dcb7f39478251329
+
+post_install() {
+ vlicense LICENSE
+ vinstall main.py 755 /usr/share/weechat/python weechat-matrix.py
+}