Skip to content

Commit

Permalink
rfc3986-validator: patch out pytest-runner dep
Browse files Browse the repository at this point in the history
  • Loading branch information
lazka committed Oct 19, 2024
1 parent 6dee66a commit c064ee0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- rfc3986_validator-0.1.1/setup.py.orig 2019-10-28 16:38:52.000000000 +0100
+++ rfc3986_validator-0.1.1/setup.py 2024-10-19 13:46:53.585811900 +0200
@@ -10,7 +10,7 @@

requirements = []

-setup_requirements = ['pytest-runner', ]
+setup_requirements = []

test_requirements = ['pytest>=3', ]

10 changes: 8 additions & 2 deletions mingw-w64-python-rfc3986-validator/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,16 @@ checkdepends=(
"${MINGW_PACKAGE_PREFIX}-python-rfc3987"
"${MINGW_PACKAGE_PREFIX}-python-hypothesis"
)
source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname/-/_}-${pkgver}.tar.gz")
sha256sums=('3d44bde7921b3b9ec3ae4e3adca370438eccebc676456449b145d533b240d055')
source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname/-/_}-${pkgver}.tar.gz"
"0001-remove-pytest-runner-dep.patch")
sha256sums=('3d44bde7921b3b9ec3ae4e3adca370438eccebc676456449b145d533b240d055'
'993bd678996e98fad8912416b94e773c257d17f68b5e39794c84428db21ba9d3')

build() {
cd "${_realname/-/_}-${pkgver}"
patch -Np1 -i ../0001-remove-pytest-runner-dep.patch

cd "${srcdir}"
cp -r "${_realname/-/_}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}"

"${MINGW_PREFIX}"/bin/python setup.py build
Expand Down

0 comments on commit c064ee0

Please sign in to comment.