2021-01-31 17:42:24 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-01-31 17:46:15 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
2021-09-30 08:42:36 +02:00
|
|
|
, pythonOlder
|
2021-01-31 17:42:24 +01:00
|
|
|
}:
|
2017-09-13 00:54:52 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cachetools";
|
2022-01-17 10:32:35 +01:00
|
|
|
version = "5.0.0";
|
2021-11-10 10:28:00 +01:00
|
|
|
format = "setuptools";
|
2017-09-13 00:54:52 +01:00
|
|
|
|
2022-01-17 10:32:35 +01:00
|
|
|
disabled = pythonOlder "3.7";
|
2021-03-20 20:01:17 +01:00
|
|
|
|
2021-01-31 17:46:15 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tkem";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-01-17 10:32:35 +01:00
|
|
|
hash = "sha256-urTkls1S83m7Eo7chPaQc5gxz0omZBToNYa8upQEiOo=";
|
2017-09-13 00:54:52 +01:00
|
|
|
};
|
|
|
|
|
2021-09-30 08:42:36 +02:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-01-31 17:46:15 +01:00
|
|
|
|
2021-11-10 10:28:00 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"cachetools"
|
|
|
|
];
|
2021-01-31 17:46:15 +01:00
|
|
|
|
2021-01-11 08:54:33 +01: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 17:46:15 +01:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2017-09-13 00:54:52 +01:00
|
|
|
};
|
|
|
|
}
|