1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonAtLeast
5, flit-core
6, pytestCheckHook
7}:
8
9let
10 pname = "socksio";
11 version = "1.0.0";
12in
13buildPythonPackage {
14 inherit pname version;
15 format = "pyproject";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-+IvrPaW1w4uYkEad5n0MsPnUlLeLEGyhhF+WwQuRxKw=";
20 };
21
22 nativeBuildInputs = [
23 flit-core
24 ];
25
26 # remove coverage configuration
27 preCheck = ''
28 rm pytest.ini
29 '';
30
31 checkInputs = [
32 pytestCheckHook
33 ];
34
35 meta = with lib; {
36 description = "Sans-I/O implementation of SOCKS4, SOCKS4A, and SOCKS5";
37 homepage = "https://github.com/sethmlarson/socksio";
38 license = licenses.mit;
39 maintainers = with maintainers; [ hexa ];
40 };
41}