aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/aiocache/default.nix
blob: 54979dbd7ba4ff94d75cd328ce97c12f2fd8c498 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ lib
, aioredis
, buildPythonPackage
, fetchFromGitHub
, msgpack
}:

buildPythonPackage rec {
  pname = "aiocache";
  version = "0.11.1";

  src = fetchFromGitHub {
    owner = "aio-libs";
    repo = pname;
    rev = version;
    sha256 = "1czs8pvhzi92qy2dch2995rb62mxpbhd80dh2ir7zpa9qcm6wxvx";
  };

  propagatedBuildInputs = [
    aioredis
    msgpack
  ];

  # aiomcache would be required but last release was in 2017
  doCheck = false;
  pythonImportsCheck = [ "aiocache" ];

  meta = with lib; {
    description = "Python API Rate Limit Decorator";
    homepage = "https://github.com/tomasbasham/ratelimit";
    license = with licenses; [ bsd3 ];
    maintainers = with maintainers; [ fab ];
  };
}