summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6b6e4a09a2f400847c38dbc73219562512812920 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Maintainer: Felix Yan <felixonmars@archlinux.org>

_name=hypothesis-auto
pkgname=python-hypothesis-auto
pkgver=1.1.5
_commit=d3a9162feb79b310aa9ce61f8f8ac86caa591d38
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=('git' 'python-build' 'python-installer' 'python-poetry-core' 'python-wheel')
checkdepends=('python-pytest')
optdepends=('python-pytest: for pytest plugin')
# NOTE: there are no tags: https://github.com/timothycrosley/hypothesis-auto/issues/14
source=(
  "git+$url#commit=$_commit"
)
sha512sums=('SKIP')

build() {
  cd $_name
  python -m build --wheel --no-isolation
}

check() {
  cd $_name
  python -m pytest -v
}

package() {
  cd $_name
  python -m installer --destdir="$pkgdir" dist/*.whl

  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}