blob: c4e408cced64ba2d4e942570d570a78371fffd53 (
plain) (
blame)
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
{
lib,
stdenv,
fetchFromGitHub,
buildPythonPackage,
pythonOlder,
# build-system
hatchling,
# dependencies
click,
redis,
# tests
psutil,
pytestCheckHook,
redis-server,
sentry-sdk,
}:
buildPythonPackage rec {
pname = "rq";
version = "1.16.2";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "rq";
repo = "rq";
rev = "refs/tags/v${version}";
hash = "sha256-8uhCV4aJNbY273jOa9D5OlgEG1w3hXVncClKQTO9Pyk=";
};
build-system = [ hatchling ];
dependencies = [
click
redis
];
nativeCheckInputs = [
psutil
pytestCheckHook
sentry-sdk
];
preCheck = ''
PATH=$out/bin:$PATH
${redis-server}/bin/redis-server &
'';
postCheck = ''
kill %%
'';
__darwinAllowLocalNetworking = true;
disabledTests = [
# https://github.com/rq/rq/commit/fd261d5d8fc0fe604fa396ee6b9c9b7a7bb4142f
"test_clean_large_registry"
];
pythonImportsCheck = [ "rq" ];
meta = with lib; {
description = "Library for creating background jobs and processing them";
homepage = "https://github.com/nvie/rq/";
changelog = "https://github.com/rq/rq/releases/tag/v${version}";
license = licenses.bsd2;
maintainers = with maintainers; [ mrmebelman ];
};
}
|