diff --git a/srcpkgs/certbot/patches/remove-mock.patch b/srcpkgs/certbot/patches/remove-mock.patch new file mode 100644 index 00000000000..f8be01a01bf --- /dev/null +++ b/srcpkgs/certbot/patches/remove-mock.patch @@ -0,0 +1,10 @@ +--- setup.py ++++ setup.py +@@ -45,7 +45,6 @@ + # 1.1.0+ is required to avoid the warnings described at + # https://github.com/certbot/josepy/issues/13. + 'josepy>=1.1.0', +- 'mock', + 'parsedatetime>=1.3', # Calendar.parseDT + 'pyrfc3339', + 'pytz', diff --git a/srcpkgs/certbot/template b/srcpkgs/certbot/template index 008d7610767..0be81611c5c 100644 --- a/srcpkgs/certbot/template +++ b/srcpkgs/certbot/template @@ -1,18 +1,23 @@ # Template file for 'certbot' pkgname=certbot version=1.0.0 -revision=2 +revision=3 archs=noarch build_style=python3-module hostmakedepends="python3-setuptools" -depends="python3 python3-acme python3-ConfigArgParse python3-configobj - python3-cryptography python3-josepy python3-pyrfc3339 python3-pytz - python3-zope.component python3-zope.interface python3-parsedatetime - python3-zope.hookable python3-mock python3-zope.deferredimport - python3-zope.deprecation" +depends="python3-acme python3-ConfigArgParse python3-configobj + python3-cryptography python3-distro python3-josepy python3-parsedatetime + python3-pyrfc3339 python3-pytz python3-setuptools + python3-zope.component python3-zope.interface" +checkdepends="$depends python3-py python3-pluggy python3-wcwidth + python3-more-itertools python3-pytest" short_desc="Let's Encrypt certificate renewal automation utility" maintainer="Alex Childs " license="Apache-2.0" homepage="https://certbot.eff.org/" distfiles="${PYPI_SITE}/c/certbot/certbot-${version}.tar.gz" checksum=86b82d31db19fffffb0d6b218951e2121ef514e3ff659aa042deaf92a33e302a + +post_install() { + rm -rf ${DESTDIR}/${py3_sitelib}/certbot/tests +}