python-pytest-mock: drop package

This commit is contained in:
Đoàn Trần Công Danh 2020-09-20 17:32:52 +07:00
parent 77c37045ed
commit 024e06c0c2
3 changed files with 25 additions and 39 deletions

View file

@ -1,38 +0,0 @@
# Template file for 'python-pytest-mock'
pkgname=python-pytest-mock
version=1.10.4
revision=2
archs=noarch
wrksrc="${pkgname/python-//}-${version}"
build_style=python-module
pycompile_module="pytest_mock.py _pytest_mock_version.py"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-pytest python-mock"
checkdepends="$depends"
short_desc="Thin-wrapper around mock for easier use with py.test (Python2)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/pytest-dev/pytest-mock/"
distfiles="${PYPI_SITE}/p/pytest-mock/pytest-mock-${version}.tar.gz"
checksum=5bf5771b1db93beac965a7347dc81c675ec4090cb841e49d9d34637a25c30568
pre_build() {
sed -i setup.py \
-e '/setup_requires=/d' \
-e "s|use_scm_version=.*|version='${version}',|"
}
post_install() {
vlicense LICENSE
}
python3-pytest-mock_package() {
archs=noarch
depends="python3-pytest"
pycompile_module="pytest_mock.py _pytest_mock_version.py"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove "usr/lib/python3*"
vlicense LICENSE
}
}

View file

@ -1 +0,0 @@
python-pytest-mock

View file

@ -0,0 +1,25 @@
# Template file for 'python3-pytest-mock'
pkgname=python3-pytest-mock
version=1.10.4
revision=3
wrksrc="${pkgname#*-}-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-pytest"
checkdepends="$depends"
short_desc="Thin-wrapper around mock for easier use with py.test (Python3)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/pytest-dev/pytest-mock/"
distfiles="${PYPI_SITE}/p/pytest-mock/pytest-mock-${version}.tar.gz"
checksum=5bf5771b1db93beac965a7347dc81c675ec4090cb841e49d9d34637a25c30568
pre_build() {
sed -i setup.py \
-e '/setup_requires=/d' \
-e "s|use_scm_version=.*|version='${version}',|"
}
post_install() {
vlicense LICENSE
}