1{ lib
2, aioredis
3, buildPythonPackage
4, fetchFromGitHub
5, msgpack
6}:
7
8buildPythonPackage rec {
9 pname = "aiocache";
10 version = "0.11.1";
11
12 src = fetchFromGitHub {
13 owner = "aio-libs";
14 repo = pname;
15 rev = version;
16 sha256 = "1czs8pvhzi92qy2dch2995rb62mxpbhd80dh2ir7zpa9qcm6wxvx";
17 };
18
19 propagatedBuildInputs = [
20 aioredis
21 msgpack
22 ];
23
24 # aiomcache would be required but last release was in 2017
25 doCheck = false;
26 pythonImportsCheck = [ "aiocache" ];
27
28 meta = with lib; {
29 description = "Python API Rate Limit Decorator";
30 homepage = "https://github.com/tomasbasham/ratelimit";
31 license = with licenses; [ bsd3 ];
32 maintainers = with maintainers; [ fab ];
33 };
34}