[arch-commits] Commit in python-hypothesis-auto/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Nov 10 05:11:12 UTC 2020


    Date: Tuesday, November 10, 2020 @ 05:11:12
  Author: felixonmars
Revision: 749349

archrelease: copy trunk to community-staging-any

Added:
  python-hypothesis-auto/repos/community-staging-any/
  python-hypothesis-auto/repos/community-staging-any/PKGBUILD
    (from rev 749347, python-hypothesis-auto/trunk/PKGBUILD)

----------+
 PKGBUILD |   39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

Copied: python-hypothesis-auto/repos/community-staging-any/PKGBUILD (from rev 749347, python-hypothesis-auto/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-10 05:11:12 UTC (rev 749349)
@@ -0,0 +1,39 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-hypothesis-auto
+pkgver=1.1.4
+_commit=4ed588ab631d6c44c8959334a3425a8c0d207eff
+pkgrel=2
+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