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.2.0"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "9e5c1a20afc3cf786197ae59c79bcdb0e7565f218f27df5f891307ee8817c1ea"; 17 }; 18 19 nativeBuildInputs = [ pbr ]; 20 propagatedBuildInputs = [ requests ]; 21 22 checkInputs = [ pytestCheckHook waitress ]; 23 24 preCheck = '' 25 rm pytest.ini 26 ''; 27 28 meta = with lib; { 29 description = "Use requests to talk HTTP via a UNIX domain socket"; 30 homepage = "https://github.com/msabramo/requests-unixsocket"; 31 license = licenses.asl20; 32 maintainers = [ maintainers.catern ]; 33 }; 34}