Skip to content
Snippets Groups Projects
Commit 5244c44c authored by Leo's avatar Leo
Browse files

community/py3-pytest-forked: fix build and remove dep on setuptools_scm

parent 3e8c9488
No related merge requests found
......@@ -9,7 +9,7 @@ url="https://github.com/pytest-dev/pytest-forked"
arch="noarch"
license="MIT"
depends="py3-pytest"
makedepends="py3-setuptools_scm py3-pbr"
makedepends="py3-setuptools py3-pbr"
checkdepends="py3-tox"
source="https://files.pythonhosted.org/packages/source/p/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
......@@ -18,6 +18,14 @@ options="!check" # pytest issues
replaces="pytest-forked" # Backwards compatibility
provides="pytest-forked=$pkgver-r$pkgrel" # Backwards compatibility
prepare() {
default_prepare
sed -e "s/use_scm_version=True/version='$pkgver'/" \
-e '/setuptools_scm/d' \
-i setup.py
}
build() {
python3 setup.py build
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment