2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
|
|
|
, pbr, requests
|
2020-12-25 13:55:36 +00:00
|
|
|
, pytest, waitress }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "requests-unixsocket";
|
|
|
|
version = "0.2.0";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "9e5c1a20afc3cf786197ae59c79bcdb0e7565f218f27df5f891307ee8817c1ea";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pbr ];
|
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
checkInputs = [ pytest waitress ];
|
2020-04-24 23:36:52 +00:00
|
|
|
checkPhase = ''
|
2020-12-07 07:45:13 +00:00
|
|
|
rm pytest.ini
|
2020-04-24 23:36:52 +00:00
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Use requests to talk HTTP via a UNIX domain socket";
|
|
|
|
homepage = "https://github.com/msabramo/requests-unixsocket";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.catern ];
|
|
|
|
};
|
|
|
|
}
|