1{ lib
2, buildPythonPackage
3, fetchPypi
4, pbr
5, requests
6, pytestCheckHook
7, waitress
8}:
9
10buildPythonPackage rec {
11 pname = "requests-unixsocket";
12 version = "0.3.0";
13 format = "setuptools";
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-KDBCg+qTV9Rf/1itWxHkdwjPv1gGgXqlmyo2Mijulx4=";
18 };
19
20 nativeBuildInputs = [
21 pbr
22 ];
23
24 propagatedBuildInputs = [
25 requests
26 ];
27
28 checkInputs = [
29 pytestCheckHook
30 waitress
31 ];
32
33 pythonImportsCheck = [
34 "requests_unixsocket"
35 ];
36
37 meta = with lib; {
38 description = "Use requests to talk HTTP via a UNIX domain socket";
39 homepage = "https://github.com/msabramo/requests-unixsocket";
40 license = licenses.asl20;
41 maintainers = with maintainers; [ catern ];
42 };
43}