1{ lib 2, async-timeout 3, buildPythonPackage 4, curio 5, fetchFromGitHub 6, anyio 7, flask 8, pytest-asyncio 9, pytest-trio 10, pythonOlder 11, pytestCheckHook 12, trio 13, trustme 14, yarl 15}: 16 17buildPythonPackage rec { 18 pname = "python-socks"; 19 version = "2.4.2"; 20 format = "setuptools"; 21 22 disabled = pythonOlder "3.6.2"; 23 24 __darwinAllowLocalNetworking = true; 25 26 src = fetchFromGitHub { 27 owner = "romis2012"; 28 repo = "python-socks"; 29 rev = "refs/tags/v${version}"; 30 hash = "sha256-HnZrnsxPmRJzrvJbKS5r+di+msykDwWS7TB5CitIve8="; 31 }; 32 33 propagatedBuildInputs = [ 34 trio 35 curio 36 async-timeout 37 ]; 38 39 doCheck = false; # requires tiny_proxy module 40 41 nativeCheckInputs = [ 42 anyio 43 flask 44 pytest-asyncio 45 pytest-trio 46 pytestCheckHook 47 trustme 48 yarl 49 ]; 50 51 pythonImportsCheck = [ 52 "python_socks" 53 ]; 54 55 meta = with lib; { 56 changelog = "https://github.com/romis2012/python-socks/releases/tag/v${version}"; 57 description = "Core proxy client (SOCKS4, SOCKS5, HTTP) functionality for Python"; 58 homepage = "https://github.com/romis2012/python-socks"; 59 license = licenses.asl20; 60 maintainers = with maintainers; [ ]; 61 }; 62}