2018-02-16 20:59:50 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
|
|
|
, pbr, requests
|
2020-12-11 02:14:06 +00:00
|
|
|
, pytest, waitress }:
|
2018-02-16 20:59:50 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "requests-unixsocket";
|
2019-10-24 07:47:47 +01:00
|
|
|
version = "0.2.0";
|
2018-02-16 20:59:50 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-24 07:47:47 +01:00
|
|
|
sha256 = "9e5c1a20afc3cf786197ae59c79bcdb0e7565f218f27df5f891307ee8817c1ea";
|
2018-02-16 20:59:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pbr ];
|
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
|
2020-12-11 02:14:06 +00:00
|
|
|
checkInputs = [ pytest waitress ];
|
2018-02-16 20:59:50 +00:00
|
|
|
checkPhase = ''
|
2020-12-01 00:48:18 +00:00
|
|
|
rm pytest.ini
|
2018-02-16 20:59:50 +00:00
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Use requests to talk HTTP via a UNIX domain socket";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/msabramo/requests-unixsocket";
|
2018-02-16 20:59:50 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.catern ];
|
|
|
|
};
|
|
|
|
}
|