blob: 3e28ba6bb42478fe69de378686db87e032da3792 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
rustPlatform,
pytest-asyncio,
redis,
}:
buildPythonPackage (finalAttrs: {
pname = "burner-redis";
version = "0.1.7";
pyproject = true;
src = fetchFromGitHub {
owner = "prefectlabs";
repo = "burner-redis";
tag = "v${finalAttrs.version}";
hash = "sha256-Ybi8F0imJKUQiF0Gfy/WGcAqfQSPoT1tAvOXDnI5Z7M=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit (finalAttrs) pname version src;
hash = "sha256-laD/FhYxXCOZOvs0e7ad80vUgX4eoHpLQu6dx/glkEM=";
};
nativeBuildInputs = [
rustPlatform.cargoSetupHook
rustPlatform.maturinBuildHook
];
pythonImportsCheck = [ "burner_redis" ];
doCheck = true;
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
redis
];
meta = {
description = "Embedded, in-process Redis-compatible database";
homepage = "https://github.com/prefectlabs/burner-redis";
downloadPage = "https://github.com/prefectlabs/burner-redis/releases";
changelog = "https://github.com/prefectlabs/burner-redis/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ prince213 ];
};
})
|