summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/async-cache/default.nix
blob: 5be646ec1a62b4f27e058dee80d4f96bc82cc1d3 (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  pytestCheckHook,
}:

buildPythonPackage (finalAttrs: {
  pname = "async-cache";
  version = "2.0.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "iamsinghrajat";
    repo = "async-cache";
    tag = finalAttrs.version;
    hash = "sha256-3SPepAlXJxufTgNqwxh/c2jhL/j9/omqOZElHhDiIIw=";
  };

  build-system = [ setuptools ];

  pythonImportsCheck = [ "cache" ];

  nativeCheckInputs = [ pytestCheckHook ];

  meta = {
    description = "Caching solution for asyncio";
    homepage = "https://github.com/iamsinghrajat/async-cache";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.lukegb ];
  };
})