New comment by q66 on void-packages repository https://github.com/void-linux/void-packages/pull/20559#issuecomment-608173638 Comment: Okay. We will need `python3-scrypt` after all, since our `hashlib` does not have `scrypt` (due to LibreSSL not being compatible with OpenSSL 1.1.x API). Also, please apply the following diff: ``` diff --git a/srcpkgs/etesync-dav/template b/srcpkgs/etesync-dav/template index ae9b63d2c1..8d5fa393ee 100644 --- a/srcpkgs/etesync-dav/template +++ b/srcpkgs/etesync-dav/template @@ -7,9 +7,14 @@ wrksrc="etesync-dav-${version}" build_style=python3-module hostmakedepends="python3-setuptools" depends="python3-etesync radicale2 python3-Flask python3-Flask-WTF" +checkdepends="$depends python3-pytest" short_desc="CalDAV and CardDAV frontend for EteSync" maintainer="projectmoon " license="GPL-3.0-only" homepage="http://www.etesync.com" distfiles="${PYPI_SITE}/e/etesync-dav/etesync-dav-${version}.tar.gz" checksum="c9ec3f39bd9a096823f5439aa3d7a3a93b7dfdf19fdef8a1f9ed3c48b3280de4" + +do_check() { + pytest3 +} diff --git a/srcpkgs/python3-etesync/template b/srcpkgs/python3-etesync/template index 5a889c4cea..0be6a143f8 100644 --- a/srcpkgs/python3-etesync/template +++ b/srcpkgs/python3-etesync/template @@ -9,10 +9,15 @@ hostmakedepends="python3-setuptools" depends="python3-appdirs python3-asn1crypto python3-cffi python3-cryptography python3-dateutil python3-furl python3-idna python3-packaging python3-peewee python3-py python3-pyasn1 python3-pycparser python3-parsing python3-pytz python3-requests python3-six -python3-vobject" +python3-vobject python3-scrypt" +checkdepends="$depends python3-pytest python3-coverage" short_desc="Python3 client library for EteSync" maintainer="projectmoon " license="LGPL-3.0-only" homepage="https://www.etesync.com" distfiles="${PYPI_SITE}/e/etesync/etesync-${version}.tar.gz" checksum=6ca671217bc90c3711b98e7fc84d02273a21048a65e2018083817c8234d04d79 + +do_check() { + pytest3 -v tests/{test_collections.py,test_crypto.py} +} diff --git a/srcpkgs/python3-furl/template b/srcpkgs/python3-furl/template index 0116a02145..5fc53ba21d 100644 --- a/srcpkgs/python3-furl/template +++ b/srcpkgs/python3-furl/template @@ -7,6 +7,7 @@ wrksrc="furl-${version}" build_style=python3-module hostmakedepends="python3-setuptools" depends="python3-six python3-orderedmultidict" +checkdepends="$depends python3-flake8" short_desc="Python 3 URL manipulation made simple" maintainer="projectmoon " license="Unlicense" diff --git a/srcpkgs/python3-orderedmultidict/template b/srcpkgs/python3-orderedmultidict/template index 1f1ecb518c..e6df82104c 100644 --- a/srcpkgs/python3-orderedmultidict/template +++ b/srcpkgs/python3-orderedmultidict/template @@ -6,7 +6,8 @@ archs=noarch wrksrc="orderedmultidict-${version}" build_style=python3-module hostmakedepends="python3-setuptools" -depends="python3" +depends="python3 python3-six" +checkdepends="$depends python3-flake8" short_desc="Python 3 ordered multivalue dictionary library" maintainer="projectmoon " license="Unlicense" ``` Here is a `python3-scrypt` that should work: ``` # Template file for 'python3-scrypt' pkgname=python3-scrypt version=0.8.13 revision=1 wrksrc="scrypt-${version}" build_style=python3-module hostmakedepends="python3-setuptools" makedepends="python3-devel libressl-devel" short_desc="Python 3 bindings for the scrypt key derivation function" maintainer="projectmoon " license="BSD-2-Clause" homepage="https://bitbucket.org/mhallin/py-scrypt/src/default" distfiles="${PYPI_SITE}/s/scrypt/scrypt-${version}.tar.gz" checksum=1377b1adc98c4152694bf5d7e93b41a9d2e9060af69b747cfad8c93ac426f9ea post_install() { vlicense LICENSE } ```