summary refs log tree commit diff
path: root/pkgs/development/python-modules/cachecontrol/default.nix
blob: 693646c80a4dbd407b02cbc4c99bee84cbedf11f (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
33
34
{ stdenv
, buildPythonPackage
, fetchPypi
, requests
, msgpack
, pytest
}:

buildPythonPackage rec {
  version = "0.12.6";
  pname = "CacheControl";

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

  checkInputs = [ pytest ];
  propagatedBuildInputs = [ requests msgpack ];

  # tests not included with pypi release
  doCheck = false;

  checkPhase = ''
    pytest tests
  '';

  meta = with stdenv.lib; {
    homepage = https://github.com/ionrock/cachecontrol;
    description = "Httplib2 caching for requests";
    license = licenses.asl20;
    maintainers = [ maintainers.costrouc ];
  };
}