nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 anyio,
4 buildPythonPackage,
5 fetchFromGitHub,
6 setuptools,
7}:
8
9buildPythonPackage rec {
10 pname = "tiny-proxy";
11 version = "0.2.1";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "romis2012";
16 repo = "tiny-proxy";
17 tag = "v${version}";
18 hash = "sha256-59T09qcOstl/yfzQmNlTNxGerQethZntwDAHwz/5FFM=";
19 };
20
21 nativeBuildInputs = [ setuptools ];
22
23 propagatedBuildInputs = [ anyio ];
24
25 # The tests depend on httpx-socks, whose tests depend on tiny-proxy.
26 doCheck = false;
27
28 pythonImportsCheck = [ "tiny_proxy" ];
29
30 meta = {
31 description = "SOCKS5/SOCKS4/HTTP proxy server";
32 homepage = "https://github.com/romis2012/tiny-proxy";
33 changelog = "https://github.com/romis2012/tiny-proxy/releases/tag/v${version}";
34 license = lib.licenses.asl20;
35 };
36}