My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/treq/default.nix

40 lines
713 B

{ lib
, fetchPypi
, buildPythonPackage
, requests
, twisted
, incremental
, httpbin
}:
buildPythonPackage rec {
pname = "treq";
version = "22.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-33V+PxQfx4Lt4HamBFIRlP/LQPomRc9I5aNwYDB/Uuw=";
};
propagatedBuildInputs = [
requests
incremental
twisted
] ++ twisted.optional-dependencies.tls;
checkInputs = [
httpbin
twisted
];
checkPhase = ''
trial treq
'';
meta = with lib; {
homepage = "https://github.com/twisted/treq";
description = "Requests-like API built on top of twisted.web's Agent";
license = licenses.mit;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}