Github messages for voidlinux
 help / color / mirror / Atom feed
From: q66 <q66@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: New package: etesync-dav
Date: Fri, 03 Apr 2020 03:53:49 +0200	[thread overview]
Message-ID: <20200403015349.GvCS9sYlkYSlZlzGH8JPk7ovepT6Sw4CpeDSbOTkDos@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-20559@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 3903 bytes --]

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 <projectmoon@agnos.is>"
 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 <projectmoon@agnos.is>"
 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 <projectmoon@agnos.is>"
 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 <projectmoon@agnos.is>"
 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 <projectmoon@agnos.is>"
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
}
```

  parent reply	other threads:[~2020-04-03  1:53 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-01 22:04 [PR PATCH] " ProjectMoon
2020-04-01 22:13 ` [PR PATCH] [Updated] " ProjectMoon
2020-04-01 22:20 ` ProjectMoon
2020-04-02  2:28 ` q66
2020-04-02  2:30 ` q66
2020-04-02  8:05 ` tasn
2020-04-02 21:45 ` [PR PATCH] [Updated] " ProjectMoon
2020-04-02 21:46 ` ProjectMoon
2020-04-03  1:07 ` q66
2020-04-03  1:39 ` q66
2020-04-03  1:40 ` q66
2020-04-03  1:51 ` q66
2020-04-03  1:51 ` q66
2020-04-03  1:53 ` q66 [this message]
2020-04-03 19:58 ` [PR PATCH] [Updated] " ProjectMoon
2020-04-03 20:01 ` ProjectMoon
2020-04-04  1:42 ` q66
2020-04-04  8:29 ` [PR PATCH] [Updated] " ProjectMoon
2020-04-04  8:29 ` ProjectMoon
2020-04-04 15:20 ` q66
2020-04-04 15:20 ` [PR PATCH] [Merged]: " q66

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200403015349.GvCS9sYlkYSlZlzGH8JPk7ovepT6Sw4CpeDSbOTkDos@z \
    --to=q66@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).