Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 28 lines 695 B view raw
1{ lib, buildPythonPackage, fetchPypi 2, pbr, requests 3, pytest, pytestpep8, 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 pytestpep8 waitress ]; 18 checkPhase = '' 19 py.test 20 ''; 21 22 meta = with lib; { 23 description = "Use requests to talk HTTP via a UNIX domain socket"; 24 homepage = https://github.com/msabramo/requests-unixsocket; 25 license = licenses.asl20; 26 maintainers = [ maintainers.catern ]; 27 }; 28}