[arch-commits] Commit in python-hypothesis-auto/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sun Jul 19 11:26:15 UTC 2020
Date: Sunday, July 19, 2020 @ 11:26:14
Author: felixonmars
Revision: 664554
archrelease: copy trunk to community-any
Added:
python-hypothesis-auto/repos/community-any/
python-hypothesis-auto/repos/community-any/PKGBUILD
(from rev 664553, python-hypothesis-auto/trunk/PKGBUILD)
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Copied: python-hypothesis-auto/repos/community-any/PKGBUILD (from rev 664553, python-hypothesis-auto/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2020-07-19 11:26:14 UTC (rev 664554)
@@ -0,0 +1,39 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-hypothesis-auto
+pkgver=1.1.4
+_commit=4ed588ab631d6c44c8959334a3425a8c0d207eff
+pkgrel=1
+pkgdesc="Extends Hypothesis to add fully automatic testing of type annotated functions"
+url="https://github.com/timothycrosley/hypothesis-auto"
+license=('MIT')
+arch=('any')
+depends=('python-pydantic' 'python-hypothesis')
+makedepends=('python-dephell')
+checkdepends=('python-pytest')
+source=("https://github.com/timothycrosley/hypothesis-auto/archive/$_commit/$pkgname-$_commit.tar.gz")
+sha512sums=('96a9b541dedcbe20eae242201ad2d57366f61ab60aa388ad67102a18bd1fdd916f3a45cee67ff7021dc4358707457f6f607e6a0666b85005150d09e398bfda58')
+
+prepare() {
+ cd hypothesis-auto-$_commit
+ # poetry-generated setup.py are fatally broken, see:
+ # https://github.com/sdispater/poetry/issues/866
+ dephell deps convert --from pyproject.toml --to setup.py
+}
+
+build() {
+ cd hypothesis-auto-$_commit
+ python setup.py build
+}
+
+check() {
+ cd hypothesis-auto-$_commit
+ python -m pytest
+}
+
+package() {
+ cd hypothesis-auto-$_commit
+ python setup.py install --root="$pkgdir" --optimize=1
+
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
More information about the arch-commits
mailing list