Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / requests-unixsocket / default.nix
blobf98b68c13a0b8b5cfa15d404c60cdf2ebbf574f0
1 { lib, buildPythonPackage, fetchPypi
2 , pbr, requests
3 , pytest, waitress }:
5 buildPythonPackage rec {
6   pname = "requests-unixsocket";
7   version = "0.2.0";
9   src = fetchPypi {
10     inherit pname version;
11     sha256 = "9e5c1a20afc3cf786197ae59c79bcdb0e7565f218f27df5f891307ee8817c1ea";
12   };
14   nativeBuildInputs = [ pbr ];
15   propagatedBuildInputs = [ requests ];
17   checkInputs = [ pytest waitress ];
18   checkPhase = ''
19     rm pytest.ini
20     py.test
21   '';
23   meta = with lib; {
24     description = "Use requests to talk HTTP via a UNIX domain socket";
25     homepage = "https://github.com/msabramo/requests-unixsocket";
26     license = licenses.asl20;
27     maintainers = [ maintainers.catern ];
28   };