summary refs log tree commit diff
path: root/pkgs/development/python-modules/requests-toolbelt/default.nix
blob: 809c8d3c96df21141d2170833e07ffdef53bc796 (plain) (blame)
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
{ lib
, buildPythonPackage
, fetchPypi
, requests
, betamax
, mock
, pytest
}:

buildPythonPackage rec {
  pname = "requests-toolbelt";
  version = "0.8.0";
  name = "${pname}-${version}";

  src = fetchPypi {
    inherit pname version;
    sha256 = "f6a531936c6fa4c6cfce1b9c10d5c4f498d16528d2a54a22ca00011205a187b5";
  };

  checkInputs = [ betamax mock pytest ];
  propagatedBuildInputs = [ requests ];

  checkPhase = ''
    py.test tests
  '';

  meta = {
    description = "A toolbelt of useful classes and functions to be used with python-requests";
    homepage = http://toolbelt.rtfd.org;
    maintainers = with lib.maintainers; [ jgeerds ];
  };
}