2021-12-27 22:52:21 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-trio
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, trio
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "siosocks";
|
2022-09-26 04:17:27 +00:00
|
|
|
version = "0.3.0";
|
2021-12-27 22:52:21 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-03 00:48:06 +00:00
|
|
|
hash = "sha256-uja79vWhPYOhhTUBIh+XpS4GnrYJy0/XpDXXQjnyHWM=";
|
2021-12-27 22:52:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
trio
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2021-12-27 22:52:21 +00:00
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-trio
|
|
|
|
];
|
|
|
|
|
2022-07-20 00:06:16 +00:00
|
|
|
disabledTests = [
|
|
|
|
# network access
|
|
|
|
"test_connection_direct_success"
|
|
|
|
"test_connection_socks_success"
|
|
|
|
"test_connection_socks_failed"
|
|
|
|
];
|
|
|
|
|
2022-01-25 16:01:11 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Timeout on Hydra
|
|
|
|
"tests/test_trio.py"
|
|
|
|
"tests/test_sansio.py"
|
|
|
|
"tests/test_socketserver.py"
|
|
|
|
];
|
|
|
|
|
2021-12-27 22:52:21 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"siosocks"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python socks 4/5 client/server library/framework";
|
|
|
|
homepage = "https://github.com/pohmelie/siosocks";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|