depot/third_party/nixpkgs/pkgs/development/python-modules/treq/default.nix
Default email 2ce5db779a Project import generated by Copybara.
GitOrigin-RevId: 48037fd90426e44e4bf03e6479e88a11453b9b66
2022-05-18 16:49:53 +02:00

40 lines
706 B
Nix

{ 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.extras-require.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 ];
};
}