mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 12:15:32 +03:00
31 lines
907 B
Text
31 lines
907 B
Text
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
|
|
pkgname=py3-pytest-mock
|
|
_pkgname=pytest-mock
|
|
pkgver=2.0.0
|
|
pkgrel=0
|
|
pkgdesc="Thin-wrapper around the mock package for easier use with py.test"
|
|
options="!check" # Fails
|
|
url="https://github.com/pytest-dev/pytest-mock"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="py3-pytest"
|
|
makedepends="py3-setuptools"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
|
|
replaces="pytest-mock" # Backwards compatibility
|
|
provides="pytest-mock=$pkgver-r$pkgrel" # Backwards compatibility
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
py.test-3
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="8bd7f634afebeae628470270c81f0198647bf8cd5b0fac438891d881d9823e40e814d598670bb9c9722b864990958e69d385c7c6a6e2adc81d2adcb303fbe0b0 pytest-mock-2.0.0.tar.gz"
|