1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5
6 pbr,
7
8 requests,
9 poetry-core,
10
11 pytestCheckHook,
12 waitress,
13}:
14
15buildPythonPackage rec {
16 pname = "requests-unixsocket2";
17 version = "0.4.2";
18 pyproject = true;
19
20 src = fetchPypi {
21 inherit version;
22 pname = "requests_unixsocket2";
23 hash = "sha256-kpxY7MWYHz0SdmHOueyMduDwjTHFLkSrFGKsDc1VtfU=";
24 };
25
26 nativeBuildInputs = [ pbr ];
27
28 propagatedBuildInputs = [
29 requests
30 poetry-core
31 ];
32
33 nativeCheckInputs = [
34 pytestCheckHook
35 waitress
36 ];
37
38 pythonImportsCheck = [ "requests_unixsocket" ];
39
40 meta = with lib; {
41 description = "Use requests to talk HTTP via a UNIX domain socket";
42 homepage = "https://gitlab.com/thelabnyc/requests-unixsocket2";
43 license = licenses.bsd0;
44 maintainers = with maintainers; [ mikut ];
45 };
46}