summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/requests-toolbelt/default.nix
blob: f9e79d5955c37cc4d1def418777d3f0140c57320 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
  lib,
  betamax,
  buildPythonPackage,
  fetchPypi,
  pyopenssl,
  pytestCheckHook,
  requests,
  trustme,
}:

buildPythonPackage rec {
  pname = "requests-toolbelt";
  version = "1.0.0";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-doGgo9BHAStb3A7jfX+PB+vnarCMrsz8OSHOI8iNW8Y=";
  };

  propagatedBuildInputs = [ requests ];

  nativeCheckInputs = [
    betamax
    pyopenssl
    pytestCheckHook
    trustme
  ];

  disabledTests = [
    # incompatible with urllib3 2.0
    "test_dump_response"
    "test_dump_all"
    "test_prepared_request_override_base"
    "test_prepared_request_with_base"
    "test_request_override_base"
    "test_request_with_base"
  ];

  pythonImportsCheck = [ "requests_toolbelt" ];

  meta = {
    description = "Toolbelt of useful classes and functions to be used with requests";
    homepage = "http://toolbelt.rtfd.org";
    changelog = "https://github.com/requests/toolbelt/blob/${version}/HISTORY.rst";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ matthiasbeyer ];
  };
}