From 6ebc596c1d6098974d86456d8f1ff61a227f6e5d Mon Sep 17 00:00:00 2001 From: teldra Date: Fri, 15 Jul 2022 16:01:33 +0200 Subject: [PATCH] radicale: update to 3.1.8. --- srcpkgs/radicale/template | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/srcpkgs/radicale/template b/srcpkgs/radicale/template index 74b950908a5..03828eb746d 100644 --- a/srcpkgs/radicale/template +++ b/srcpkgs/radicale/template @@ -1,20 +1,21 @@ # Template file for 'radicale' pkgname=radicale -version=3.1.7 +version=3.1.8 revision=1 wrksrc="Radicale-${version}" build_style=python3-module hostmakedepends="python3-setuptools" -depends="python3-pam python3-requests python3-dulwich python3-vobject - python3-dateutil python3-passlib python3-bcrypt python3-defusedxml - apache-htpasswd" +depends="python3-vobject python3-dateutil python3-passlib python3-bcrypt + python3-defusedxml apache-htpasswd" +checkdepends="${depends} python3-pytest python3-pytest-flake8 python3-isort + python3-pytest-cov python3-waitress" short_desc="Complete calendar and contact storing and manipulating solution" maintainer="teldra " license="GPL-3.0-or-later" homepage="https://radicale.org" -changelog="https://github.com/Kozea/Radicale/blob/master/CHANGELOG.md" +changelog="https://raw.githubusercontent.com/Kozea/Radicale/master/CHANGELOG.md" distfiles="https://github.com/Kozea/Radicale/archive/refs/tags/v${version}.tar.gz" -checksum=17d65e1a25925e4531dec3a3c7b49447b8f92d2d825489249bf99fde224151ca +checksum=40078e0f05917c09664363a9e289a36d32e00d10a1d169ffc60b5c581deb4e77 conf_files=" /etc/radicale/config /etc/radicale/rights @@ -29,6 +30,14 @@ radicale_homedir="/var/lib/radicale" radicale_descr="Radicale user" replaces="radicale2<3.0.6" +do_check() { + # install the package to test_install directory for testing + python3 setup.py install --root="$PWD"/test_install + + PYTHONPATH="$PWD"/test_install/usr/lib/python3.10/site-packages \ + pytest -c /dev/null +} + post_install() { vinstall config 644 etc/radicale/ vinstall rights 640 etc/radicale/