2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
async-timeout,
|
|
|
|
buildPythonPackage,
|
|
|
|
curio,
|
|
|
|
fetchFromGitHub,
|
|
|
|
anyio,
|
|
|
|
flask,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytest-trio,
|
|
|
|
pythonOlder,
|
|
|
|
pytestCheckHook,
|
|
|
|
trio,
|
|
|
|
trustme,
|
|
|
|
yarl,
|
2021-12-26 17:43:05 +00:00
|
|
|
}:
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-socks";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2.4.4";
|
2021-12-26 17:43:05 +00:00
|
|
|
format = "setuptools";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
disabled = pythonOlder "3.6.2";
|
2021-12-26 17:43:05 +00:00
|
|
|
|
2022-09-14 18:05:37 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "romis2012";
|
2023-01-20 10:41:00 +00:00
|
|
|
repo = "python-socks";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-c1fjSHi7LvaOeZwTOTSY/ZVr27/j03CdAra1PSa9Jt0=";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
trio
|
|
|
|
curio
|
|
|
|
async-timeout
|
|
|
|
];
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
doCheck = false; # requires tiny_proxy module
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-01-20 10:41:00 +00:00
|
|
|
anyio
|
2021-12-26 17:43:05 +00:00
|
|
|
flask
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-trio
|
|
|
|
pytestCheckHook
|
2023-01-20 10:41:00 +00:00
|
|
|
trustme
|
2021-12-26 17:43:05 +00:00
|
|
|
yarl
|
|
|
|
];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "python_socks" ];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2023-01-20 10:41:00 +00:00
|
|
|
changelog = "https://github.com/romis2012/python-socks/releases/tag/v${version}";
|
2021-05-20 23:08:51 +00:00
|
|
|
description = "Core proxy client (SOCKS4, SOCKS5, HTTP) functionality for Python";
|
|
|
|
homepage = "https://github.com/romis2012/python-socks";
|
|
|
|
license = licenses.asl20;
|
2022-02-20 05:27:41 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
}
|