2021-12-26 17:43:05 +00:00
|
|
|
{ lib
|
|
|
|
, async-timeout
|
|
|
|
, buildPythonPackage
|
|
|
|
, curio
|
|
|
|
, fetchFromGitHub
|
|
|
|
, flask
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-trio
|
|
|
|
, pythonOlder
|
|
|
|
, pytestCheckHook
|
|
|
|
, trio
|
|
|
|
, yarl
|
|
|
|
}:
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-socks";
|
2022-02-21 08:47:16 +00:00
|
|
|
version = "2.0.3";
|
2021-12-26 17:43:05 +00:00
|
|
|
format = "setuptools";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
disabled = pythonOlder "3.6.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "romis2012";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-02-21 08:47:16 +00:00
|
|
|
sha256 = "sha256-tVoBon9HF9MTOK+dN9g58fQO706ElNlCeULx//7hPWA=";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
trio
|
|
|
|
curio
|
|
|
|
async-timeout
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
flask
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-trio
|
|
|
|
pytestCheckHook
|
|
|
|
yarl
|
|
|
|
];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"python_socks"
|
|
|
|
];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|