Skip to content

Commit 81a673d

Browse files
authored
extra/python3-pytest-mock (#121)
1 parent e85c355 commit 81a673d

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

extra/python3-pytest-mock/APKBUILD

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Alpine-Maintainer: Andy Postnikov <apostnikov@gmail.com>
2+
# Maintainer: Ethan Leir <eleir@qnx.com>
3+
pkgname=python3-pytest-mock
4+
pkgver=3.10.0
5+
pkgrel=0
6+
pkgdesc="Thin-wrapper around the mock package for easier use with py.test"
7+
options="!check" # Fails
8+
url="https://github.com/pytest-dev/pytest-mock"
9+
arch="noarch"
10+
license="MIT"
11+
depends="
12+
python3-pytest
13+
"
14+
makedepends="
15+
python3-gpep517
16+
python3-setuptools
17+
python3-setuptools_scm
18+
"
19+
subpackages=""
20+
source="https://files.pythonhosted.org/packages/source/p/pytest-mock/pytest-mock-$pkgver.tar.gz"
21+
builddir="$srcdir/pytest-mock-$pkgver"
22+
23+
build() {
24+
gpep517 build-wheel \
25+
--wheel-dir .dist \
26+
--output-fd 3 3>&1 >&2
27+
}
28+
29+
check() {
30+
py.test-3
31+
}
32+
33+
package() {
34+
python3 -m installer -d "$pkgdir" \
35+
.dist/*.whl
36+
}
37+
38+
sha512sums="
39+
2ad6866d581a2999899e399ef5516d478a6172f52923f03703e3e3708229fb3b1178c91225b5cc90734c96abcb48fea517b11e0fc193da6fb592295395c14cd3 pytest-mock-3.10.0.tar.gz
40+
"

0 commit comments

Comments
 (0)