Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 29 lines 692 B view raw
1{ lib, buildPythonPackage, fetchPypi 2, pbr, requests 3, pytest, waitress }: 4 5buildPythonPackage rec { 6 pname = "requests-unixsocket"; 7 version = "0.2.0"; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "9e5c1a20afc3cf786197ae59c79bcdb0e7565f218f27df5f891307ee8817c1ea"; 12 }; 13 14 nativeBuildInputs = [ pbr ]; 15 propagatedBuildInputs = [ requests ]; 16 17 checkInputs = [ pytest waitress ]; 18 checkPhase = '' 19 rm pytest.ini 20 py.test 21 ''; 22 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 }; 29}