1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pytestCheckHook,
7}:
8
9buildPythonPackage {
10 pname = "async-cache";
11 version = "1.1.1";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "iamsinghrajat";
16 repo = "async-cache";
17 rev = "9925f07920e6b585dc6345f49b7f477b3e1b8c2c"; # doesn't tag releases :(
18 hash = "sha256-AVSdtWPs1c8AE5PNOq+BdXzBXkI0aeFVzxxPl/ATyU0=";
19 };
20
21 build-system = [ setuptools ];
22
23 pythonImportsCheck = [ "cache" ];
24
25 nativeCheckInputs = [ pytestCheckHook ];
26
27 meta = {
28 description = "Caching solution for asyncio";
29 homepage = "https://github.com/iamsinghrajat/async-cache";
30 license = lib.licenses.mit;
31 maintainers = [ lib.maintainers.lukegb ];
32 };
33}