at 23.05-pre 713 B view raw
1{ lib 2, fetchPypi 3, buildPythonPackage 4, requests 5, twisted 6, incremental 7, httpbin 8}: 9 10buildPythonPackage rec { 11 pname = "treq"; 12 version = "22.2.0"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "sha256-33V+PxQfx4Lt4HamBFIRlP/LQPomRc9I5aNwYDB/Uuw="; 17 }; 18 19 propagatedBuildInputs = [ 20 requests 21 incremental 22 twisted 23 ] ++ twisted.optional-dependencies.tls; 24 25 checkInputs = [ 26 httpbin 27 twisted 28 ]; 29 30 checkPhase = '' 31 trial treq 32 ''; 33 34 meta = with lib; { 35 homepage = "https://github.com/twisted/treq"; 36 description = "Requests-like API built on top of twisted.web's Agent"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ SuperSandro2000 ]; 39 }; 40}