1{ lib
2, buildPythonPackage
3, cherrypy
4, fetchFromGitHub
5, lockfile
6, mock
7, msgpack
8, pytestCheckHook
9, pythonOlder
10, requests
11}:
12
13buildPythonPackage rec {
14 pname = "cachecontrol";
15 version = "0.12.10";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.6";
19
20 src = fetchFromGitHub {
21 owner = "ionrock";
22 repo = pname;
23 rev = "v${version}";
24 sha256 = "sha256-mgvL0q10UbPHY1H3tJprke5p8qNl3HNYoeLAERZTcTs=";
25 };
26
27 propagatedBuildInputs = [
28 msgpack
29 requests
30 ];
31
32 checkInputs = [
33 cherrypy
34 mock
35 lockfile
36 pytestCheckHook
37 ];
38
39 pythonImportsCheck = [
40 "cachecontrol"
41 ];
42
43 meta = with lib; {
44 description = "Httplib2 caching for requests";
45 homepage = "https://github.com/ionrock/cachecontrol";
46 license = licenses.asl20;
47 maintainers = with maintainers; [ costrouc ];
48 };
49}