2021-01-31 08:42:24 -08:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-01-31 08:46:15 -08:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
2021-01-31 08:42:24 -08:00
|
|
|
}:
|
2017-09-12 16:54:52 -07:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cachetools";
|
2021-01-31 08:42:24 -08:00
|
|
|
version = "4.2.1";
|
2017-09-12 16:54:52 -07:00
|
|
|
|
2021-01-31 08:46:15 -08:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tkem";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1b662ph8m2d05d2vi3izgnr6v7h9zfvscfsaaw8nhdmmm15ivfa6";
|
2017-09-12 16:54:52 -07:00
|
|
|
};
|
|
|
|
|
2021-01-31 08:46:15 -08:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "cachetools" ];
|
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2017-09-12 16:54:52 -07:00
|
|
|
description = "Extensible memoizing collections and decorators";
|
|
|
|
homepage = "https://github.com/tkem/cachetools";
|
2021-01-31 08:46:15 -08:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2017-09-12 16:54:52 -07:00
|
|
|
};
|
|
|
|
}
|