Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchpatch, 5 fetchPypi, 6 pythonAtLeast, 7 flit-core, 8 pytestCheckHook, 9}: 10 11let 12 pname = "socksio"; 13 version = "1.0.0"; 14in 15buildPythonPackage { 16 inherit pname version; 17 format = "pyproject"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-+IvrPaW1w4uYkEad5n0MsPnUlLeLEGyhhF+WwQuRxKw="; 22 }; 23 24 patches = [ 25 # https://github.com/sethmlarson/socksio/pull/61 26 (fetchpatch { 27 name = "unpin-flit-core.patch"; 28 url = "https://github.com/sethmlarson/socksio/commit/5c50fd76e7459bb822ff8f712172a78e21b8dd04.patch"; 29 hash = "sha256-VVUzFvF2KCXXkCfCU5xu9acT6OLr+PlQQPeVGONtU4A="; 30 }) 31 ]; 32 33 nativeBuildInputs = [ flit-core ]; 34 35 # remove coverage configuration 36 preCheck = '' 37 rm pytest.ini 38 ''; 39 40 nativeCheckInputs = [ pytestCheckHook ]; 41 42 meta = with lib; { 43 description = "Sans-I/O implementation of SOCKS4, SOCKS4A, and SOCKS5"; 44 homepage = "https://github.com/sethmlarson/socksio"; 45 license = licenses.mit; 46 maintainers = with maintainers; [ hexa ]; 47 }; 48}