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 01:54:52 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cachetools";
|
2021-11-10 10:28:00 +01:00
|
|
|
version = "4.2.4";
|
|
|
|
format = "setuptools";
|
2017-09-13 01:54:52 +02:00
|
|
|
|
2021-09-30 08:42:36 +02:00
|
|
|
disabled = pythonOlder "3.6";
|
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}";
|
2021-11-10 10:28:00 +01:00
|
|
|
sha256 = "sha256-doPLl7Ooc2cKlTiS/dqLTKSkTlSgPFztIumAzciM0bc=";
|
2017-09-13 01:54:52 +02: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 01:54:52 +02: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 01:54:52 +02:00
|
|
|
};
|
|
|
|
}
|