summaryrefslogtreecommitdiff
path: root/testing/py3-nptyping/APKBUILD
blob: fd474335de453f2be61b207c389d21b9c9dbe55d (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
38
39
40
41
# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=py3-nptyping
_pyname=nptyping
pkgver=2.4.1
pkgrel=1
pkgdesc="Type hints for Numpy"
url="https://github.com/ramonhagenaars/nptyping"
arch="noarch"
license="MIT"
depends="python3 py3-numpy"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-typeguard py3-beartype py3-mypy py3-wheel py3-pandas"
source="$_pyname-$pkgver.tar.gz::https://github.com/ramonhagenaars/nptyping/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	# disable tests which require network or pyright (python wrapper for the type
	# checker implemented in js, which just downloads it using npx)
	#
	# mypy tests are currently broken as pandas doesn't package type hints
	pytest \
		--ignore tests/test_wheel.py \
		--ignore tests/test_package_info.py \
		--ignore tests/test_pyright.py \
		--ignore tests/pandas_/test_fork_sync.py \
		--ignore tests/test_mypy.py \
		--ignore tests/pandas_/test_mypy_dataframe.py

}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}
sha512sums="
df2694743c5ee349f2dc2b119b38f2d0d5d38b51a0dcf8336c7e17bd9075e05e94d76d01a35156069a6c95310f69bca9040f972a7efa6e7e581503ad77730520  nptyping-2.4.1.tar.gz
"