Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package templates for httpx-socks, python3-tiny-proxy, python3-re_assert, python3-proxy.py #47202

Closed
ar-jan opened this issue Nov 13, 2023 · 0 comments

Comments

@ar-jan
Copy link
Contributor

ar-jan commented Nov 13, 2023

I made some templates in #46383 which aren't included being dependencies needed there for tests only. I'm listing them here in case they're useful to someone:

# Template file for 'python3-httpx-socks'
pkgname=python3-httpx-socks
version=0.7.8
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools python3-wheel"
depends="python3-httpx python3-socks"
checkdepends="python3-aiohttp python3-anyio python3-async-timeout
python3-httpx python3-hypercorn python3-pytest python3-pytest-asyncio
python3-pytest-cov python3-pytest-trio python3-socks python3-trustme
python3-yarl"
short_desc="Proxy (HTTP, SOCKS) transports for httpx"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Apache-2.0"
homepage="https://github.com/romis2012/httpx-socks"
distfiles="https://github.com/romis2012/httpx-socks/archive/v${version}.tar.gz"
checksum=0a4d14442e7837fd74c51b887fb4903d485d5f33ebb283c8eee7d73c664e87b5
make_check="no" # Missing test dependencies: starlette
# Template file for 'python3-tiny-proxy'
pkgname=python3-tiny-proxy
version=0.2.0
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools python3-wheel"
depends="python3-anyio"
checkdepends="python3-aiohttp python3-anyio python3-httpx python3-httpx-socks
 python3-pytest python3-pytest-asyncio python3-pytest-cov python3-trustme
 python3-charset-normalizer python3-aiosignal python3-certifi"
short_desc="SOCKS5/SOCKS4/HTTP proxy server"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Apache-2.0"
homepage="https://github.com/romis2012/tiny-proxy"
distfiles="https://github.com/romis2012/tiny-proxy/archive/v${version}.tar.gz"
checksum=04080b5047ff4d3eb2fcc195be02d03d11aa96d36f770a75e84395c28fcd34f5
make_check=no # SSLCertVerificationError
# Template file for 'python3-re_assert'
pkgname=python3-re_assert
version=1.1.0
revision=1
build_style=python3-pep517
hostmakedepends="python3-setuptools python3-wheel"
depends="python3-regex"
short_desc="Show where your regex match assertion failed"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/asottile/re-assert"
distfiles="${PYPI_SITE}/r/re-assert/re_assert-${version}.tar.gz"
checksum=5172dfbd2047a15dff2347735dea7e495479cc7e58841199a4a4973256b20464
make_check=no # PyPI package doesn't include tests

post_install() {
	vlicense LICENSE
}
# Template file for 'python3-proxy.py'
pkgname=python3-proxy.py
version=2.4.3
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools_scm python3-wheel"
depends="python3"
checkdepends="python3-httpx python3-pytest python3-pytest-cov
 python3-pytest-mock python3-pytest-asyncio"
short_desc="Fast, lightweight proxy server framework"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://github.com/abhinavsingh/proxy.py"
distfiles="${PYPI_SITE}/p/proxy.py/proxy.py-${version}.tar.gz"
checksum=6134e8f1282db1fd7fa1a4b7049e49307566851023b2ac312d9dd36e92f0c9b1

pre_configure() {
	sed -e '/setuptools-scm-git-archive/d' -i pyproject.toml
}

do_check() {
	# Integration tests are timing out; and test_wait_for_server_raises_timeout_error
	# errors on CI with "OSError: [Errno 99] Cannot assign requested address"
	PYTHONPATH=$(cd build/lib* && pwd) pytest -k 'not (test_integration or test_wait_for_server_raises_timeout_error)'
}

post_install() {
	vlicense LICENSE
}
@ahesford ahesford closed this as not planned Won't fix, can't repro, duplicate, stale Dec 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants