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