1{ lib
2, aioredis
3, buildPythonPackage
4, fetchFromGitHub
5, msgpack
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "aiocache";
11 version = "0.12.1";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "aio-libs";
18 repo = pname;
19 rev = "refs/tags/v${version}";
20 hash = "sha256-/ruB8/5/oWGlTldOXkgdsPU+mQlXOL1qRcikElEHYNQ=";
21 };
22
23 passthru.optional-dependencies = {
24 redis = [
25 aioredis
26 ];
27 msgpack = [
28 msgpack
29 ];
30 };
31
32 # aiomcache would be required but last release was in 2017
33 doCheck = false;
34
35 pythonImportsCheck = [
36 "aiocache"
37 ];
38
39 meta = with lib; {
40 description = "Python API Rate Limit Decorator";
41 homepage = "https://github.com/aio-libs/aiocache";
42 changelog = "https://github.com/aio-libs/aiocache/releases/tag/v${version}";
43 license = with licenses; [ bsd3 ];
44 maintainers = with maintainers; [ fab ];
45 };
46}