2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-11 02:20:34 +01:00
|
|
|
, buildPythonPackage
|
2021-11-01 08:39:56 +00:00
|
|
|
, cherrypy
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lockfile
|
|
|
|
, mock
|
2018-10-11 02:20:34 +01:00
|
|
|
, msgpack
|
2021-11-01 08:39:56 +00:00
|
|
|
, pytestCheckHook
|
2021-11-12 21:51:03 +00:00
|
|
|
, pythonOlder
|
2021-11-01 08:39:56 +00:00
|
|
|
, requests
|
2018-10-11 02:20:34 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-11-01 08:39:56 +00:00
|
|
|
pname = "cachecontrol";
|
2021-11-12 21:51:03 +00:00
|
|
|
version = "0.12.10";
|
2021-11-01 08:39:56 +00:00
|
|
|
format = "setuptools";
|
2018-10-11 02:20:34 +01:00
|
|
|
|
2021-11-12 21:51:03 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
2021-11-01 08:39:56 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ionrock";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-11-12 21:51:03 +00:00
|
|
|
sha256 = "sha256-mgvL0q10UbPHY1H3tJprke5p8qNl3HNYoeLAERZTcTs=";
|
2018-10-11 02:20:34 +01:00
|
|
|
};
|
|
|
|
|
2021-11-01 08:39:56 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
msgpack
|
|
|
|
requests
|
|
|
|
];
|
2018-10-11 02:20:34 +01:00
|
|
|
|
2021-11-01 08:39:56 +00:00
|
|
|
checkInputs = [
|
|
|
|
cherrypy
|
|
|
|
mock
|
|
|
|
lockfile
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2018-10-11 02:20:34 +01:00
|
|
|
|
2021-11-01 08:39:56 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"cachecontrol"
|
|
|
|
];
|
2018-10-11 02:20:34 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-11 02:20:34 +01:00
|
|
|
description = "Httplib2 caching for requests";
|
2021-11-01 08:39:56 +00:00
|
|
|
homepage = "https://github.com/ionrock/cachecontrol";
|
2018-10-11 02:20:34 +01:00
|
|
|
license = licenses.asl20;
|
2021-11-01 08:39:56 +00:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2018-10-11 02:20:34 +01:00
|
|
|
};
|
|
|
|
}
|