depot/third_party/nixpkgs/pkgs/development/python-modules/siosocks/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

54 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pytest-asyncio,
pytest-trio,
pytestCheckHook,
pythonOlder,
trio,
}:
buildPythonPackage rec {
pname = "siosocks";
version = "0.3.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-uja79vWhPYOhhTUBIh+XpS4GnrYJy0/XpDXXQjnyHWM=";
};
propagatedBuildInputs = [ trio ];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
pytest-trio
];
disabledTests = [
# network access
"test_connection_direct_success"
"test_connection_socks_success"
"test_connection_socks_failed"
];
disabledTestPaths = [
# Timeout on Hydra
"tests/test_trio.py"
"tests/test_sansio.py"
"tests/test_socketserver.py"
];
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 ];
};
}