1{ lib, buildPythonPackage, fetchPypi
2, pbr, requests
3, pytest, pytestpep8, waitress }:
4
5buildPythonPackage rec {
6 pname = "requests-unixsocket";
7 version = "0.1.5";
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "0k19knydh0fzd7w12lfy18arl1ndwa0zln33vsb37yv1iw9w06x9";
12 };
13
14 nativeBuildInputs = [ pbr ];
15 propagatedBuildInputs = [ requests ];
16
17 checkInputs = [ pytest pytestpep8 waitress ];
18 checkPhase = ''
19 py.test
20 '';
21
22 meta = with lib; {
23 description = "Use requests to talk HTTP via a UNIX domain socket";
24 homepage = https://github.com/msabramo/requests-unixsocket;
25 license = licenses.asl20;
26 maintainers = [ maintainers.catern ];
27 };
28}