mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
python310Packages.tiny-proxy: init at 0.2.0
This commit is contained in:
parent
ad394839ca
commit
ce51b2bb02
45
pkgs/development/python-modules/tiny-proxy/default.nix
Normal file
45
pkgs/development/python-modules/tiny-proxy/default.nix
Normal file
@ -0,0 +1,45 @@
|
||||
{ lib
|
||||
, anyio
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "tiny-proxy";
|
||||
version = "0.2.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "romis2012";
|
||||
repo = "tiny-proxy";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-emQRiG2QiuZt4/lI8shJOvMpaqXNyJ/PMvtDZPaoyLo=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
anyio
|
||||
];
|
||||
|
||||
# The tests depend on httpx-socks, whose tests depend on tiny-proxy.
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"tiny_proxy"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "SOCKS5/SOCKS4/HTTP proxy server";
|
||||
homepage = "https://github.com/romis2012/tiny-proxy";
|
||||
changelog = "https://github.com/romis2012/tiny-proxy/releases/tag/v${version}";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ tjni ];
|
||||
};
|
||||
}
|
@ -12226,6 +12226,8 @@ self: super: with self; {
|
||||
pythonSupport = true;
|
||||
});
|
||||
|
||||
tiny-proxy = callPackage ../development/python-modules/tiny-proxy { };
|
||||
|
||||
tinycss2 = callPackage ../development/python-modules/tinycss2 { };
|
||||
|
||||
tinycss = callPackage ../development/python-modules/tinycss { };
|
||||
|
Loading…
Reference in New Issue
Block a user