2021-02-22 21:28:39 +00:00
|
|
|
{ lib
|
|
|
|
, aioredis
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, msgpack
|
2023-02-16 17:41:37 +00:00
|
|
|
, pythonOlder
|
2021-02-22 21:28:39 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiocache";
|
2023-02-16 17:41:37 +00:00
|
|
|
version = "0.12.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-02-22 21:28:39 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aio-libs";
|
|
|
|
repo = pname;
|
2023-02-16 17:41:37 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-jNfU5jT2xLgwVeVp8jXrQ6QQuUDwMOxf+hZ7VFsMFpM=";
|
2021-02-22 21:28:39 +00:00
|
|
|
};
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
passthru.optional-dependencies = {
|
|
|
|
redis = [
|
|
|
|
aioredis
|
|
|
|
];
|
|
|
|
msgpack = [
|
|
|
|
msgpack
|
|
|
|
];
|
|
|
|
};
|
2021-02-22 21:28:39 +00:00
|
|
|
|
|
|
|
# aiomcache would be required but last release was in 2017
|
|
|
|
doCheck = false;
|
2023-02-16 17:41:37 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"aiocache"
|
|
|
|
];
|
2021-02-22 21:28:39 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python API Rate Limit Decorator";
|
2023-02-16 17:41:37 +00:00
|
|
|
homepage = "https://github.com/aio-libs/aiocache";
|
|
|
|
changelog = "https://github.com/aio-libs/aiocache/releases/tag/v${version}";
|
2021-02-22 21:28:39 +00:00
|
|
|
license = with licenses; [ bsd3 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|