mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 03:05:48 +03:00
this marginally increases install speed by not checking if it needs a rebuild. also remove --prefix=/usr as it defaults to /usr already. might break a build or two, will fix later
33 lines
868 B
Text
33 lines
868 B
Text
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=py3-pytest-socket
|
|
pkgver=0.5.1
|
|
pkgrel=1
|
|
pkgdesc="Pytest Plugin to disable socket calls during tests"
|
|
url="https://pypi.org/project/pytest-socket/"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="
|
|
py3-pytest
|
|
python3
|
|
"
|
|
makedepends="py3-setuptools"
|
|
source="https://pypi.python.org/packages/source/p/pytest-socket/pytest-socket-$pkgver.tar.gz"
|
|
options="!check" # No tests in pypi package and Github tarball unusable for distros
|
|
builddir="$srcdir/pytest-socket-$pkgver"
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
pytest
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
e87f3350fb4db621f40c7f9061955a613fc11959789e5165717b656c78bc38f67e6323b028d900ce798b9fa48f8f9c8c37779972e8cb2b98d07548aed5edcdf8 pytest-socket-0.5.1.tar.gz
|
|
"
|