Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / treq / default.nix
blob540e52f0793bf5b502995a8042a7c485035088cc
1 { lib
2 , fetchPypi
3 , buildPythonPackage
4 , requests
5 , twisted
6 , incremental
7 , httpbin
8 }:
10 buildPythonPackage rec {
11   pname = "treq";
12   version = "22.2.0";
14   src = fetchPypi {
15     inherit pname version;
16     hash = "sha256-33V+PxQfx4Lt4HamBFIRlP/LQPomRc9I5aNwYDB/Uuw=";
17   };
19   propagatedBuildInputs = [
20     requests
21     incremental
22     twisted
23   ] ++ twisted.optional-dependencies.tls;
25   nativeCheckInputs = [
26     httpbin
27     twisted
28   ];
30   checkPhase = ''
31     trial treq
32   '';
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; [ ];
39   };