2021-01-31 16:42:24 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-01-31 16:46:15 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
2021-09-30 07:42:36 +01:00
|
|
|
, pythonOlder
|
2021-01-31 16:42:24 +00:00
|
|
|
}:
|
2017-09-13 00:54:52 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cachetools";
|
2021-09-30 07:42:36 +01:00
|
|
|
version = "4.2.3";
|
2017-09-13 00:54:52 +01:00
|
|
|
|
2021-09-30 07:42:36 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
2021-03-20 19:01:17 +00:00
|
|
|
|
2021-01-31 16:46:15 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tkem";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-09-30 07:42:36 +01:00
|
|
|
sha256 = "sha256-9CHXvb+Nn3N2oWHwNbqKguzDO/q+4EnMZ50+E+MWS/A=";
|
2017-09-13 00:54:52 +01:00
|
|
|
};
|
|
|
|
|
2021-09-30 07:42:36 +01:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-01-31 16:46:15 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "cachetools" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-09-13 00:54:52 +01:00
|
|
|
description = "Extensible memoizing collections and decorators";
|
|
|
|
homepage = "https://github.com/tkem/cachetools";
|
2021-01-31 16:46:15 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2017-09-13 00:54:52 +01:00
|
|
|
};
|
|
|
|
}
|