Bug 256527 - New Port: www/py-httpx-socks - Proxy (HTTP, SOCKS) transports for httpx
Summary: New Port: www/py-httpx-socks - Proxy (HTTP, SOCKS) transports for httpx
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Rainer Hurling
URL: https://github.com/romis2012/httpx-socks
Keywords:
Depends on:
Blocks: 256529
  Show dependency treegraph
 
Reported: 2021-06-10 06:58 UTC by Zane C. Bowers-Hadley
Modified: 2021-06-13 13:54 UTC (History)
1 user (show)

See Also:


Attachments
git diff (2.40 KB, patch)
2021-06-10 06:58 UTC, Zane C. Bowers-Hadley
no flags Details | Diff
git diff (1.89 KB, patch)
2021-06-10 07:12 UTC, Zane C. Bowers-Hadley
no flags Details | Diff
git diff (1.88 KB, patch)
2021-06-10 12:41 UTC, Zane C. Bowers-Hadley
no flags Details | Diff
git diff (1.88 KB, patch)
2021-06-10 12:55 UTC, Zane C. Bowers-Hadley
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Zane C. Bowers-Hadley 2021-06-10 06:58:55 UTC
Created attachment 225691 [details]
git diff

Porting for the purpose of getting searx 1.0.0 working, which requires this.

------

The httpx-socks package provides proxy transports for httpx
client. SOCKS4(a), SOCKS5, HTTP (tunneling) proxy supported.
It uses python-socks for core proxy functionality.

WWW: https://github.com/romis2012/httpx-socks
Comment 1 Zane C. Bowers-Hadley 2021-06-10 07:12:00 UTC
Created attachment 225692 [details]
git diff

Derp. Accidentally included a file that should not of been from originally creating the port.
Comment 2 Rainer Hurling freebsd_committer freebsd_triage 2021-06-10 12:17:46 UTC
Do you agree, if we start we newest version 0.4.1?

BTW, $FreeBSD$ is not needed anymore in the Makefile, since the ports tree was moved from svn to git.
Comment 3 Zane C. Bowers-Hadley 2021-06-10 12:30:07 UTC
Hah, cool. Yeah, I see a new version was released since I submitted this. :)
Comment 4 Rainer Hurling freebsd_committer freebsd_triage 2021-06-10 12:34:28 UTC
Hi Zane,

devel/py-sniffio@py36 and devel/py-curio@py36 do not build for Python36:

=>> Ignoring devel/py-sniffio: Unknown flavor 'py36', possible flavors: py38 py39 py37
=>> Ignoring devel/py-curio: Unknown flavor 'py36', possible flavors: py38 py39 py37


So we also should set USES=python:3.7+ for both ports, www/py-httpx-socks and www/searx, shouldn't we? Any better idea?
Comment 5 Zane C. Bowers-Hadley 2021-06-10 12:41:37 UTC
Created attachment 225697 [details]
git diff

And here is the diff for the freshest version. :)
Comment 6 Zane C. Bowers-Hadley 2021-06-10 12:49:43 UTC
Ohh, cool. Building it with 3.7 here, but saw here 3.6 was mentioned as being the min supported version so just set the min version here for that as well.

Aye. May as well get that bumped.
Comment 7 Zane C. Bowers-Hadley 2021-06-10 12:55:08 UTC
Created attachment 225699 [details]
git diff
Comment 8 commit-hook freebsd_committer freebsd_triage 2021-06-13 13:52:32 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c87e99309f1afd5a71be51cf1b6b7afba00a3c11

commit c87e99309f1afd5a71be51cf1b6b7afba00a3c11
Author:     Zane C. Bowers-Hadley <vvelox@vvelox.net>
AuthorDate: 2021-06-13 13:39:33 +0000
Commit:     Rainer Hurling <rhurlin@FreeBSD.org>
CommitDate: 2021-06-13 13:51:27 +0000

    www/py-httpx-socks: New port - Proxy (HTTP, SOCKS) transports for httpx

    https://github.com/romis2012/httpx-socks

    PR:             256527

 www/Makefile                                       |  1 +
 .../256527/225692-www_py-httpx-socks.diff (new)    | 56 ++++++++++++++++++++++
 www/py-httpx-socks/Makefile (new)                  | 28 +++++++++++
 www/py-httpx-socks/distinfo (new)                  |  3 ++
 www/py-httpx-socks/pkg-descr (new)                 |  5 ++
 5 files changed, 93 insertions(+)
Comment 9 Rainer Hurling freebsd_committer freebsd_triage 2021-06-13 13:54:13 UTC
Committed, thanks :)