2021-01-31 16:42:24 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-01-31 16:46:15 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
2021-01-31 16:42:24 +00:00
|
|
|
}:
|
2017-09-13 00:54:52 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cachetools";
|
2021-01-31 16:42:24 +00:00
|
|
|
version = "4.2.1";
|
2017-09-13 00:54:52 +01:00
|
|
|
|
2021-01-31 16:46:15 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tkem";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1b662ph8m2d05d2vi3izgnr6v7h9zfvscfsaaw8nhdmmm15ivfa6";
|
2017-09-13 00:54:52 +01:00
|
|
|
};
|
|
|
|
|
2021-01-31 16:46:15 +00:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|