blob: 7eb455a6dc82c66534063b00669dc1538bdd628f (
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
75
76
77
|
{ 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.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "rq";
repo = "rq";
rev = "refs/tags/v${version}";
hash = "sha256-1E7jPTSQCjuKZVFL4uZqL1WZHnxWSLTNcnpyvfHz7oY=";
};
build-system = [
hatchling
];
dependencies = [
click
redis
];
nativeCheckInputs = [
psutil
pytestCheckHook
sentry-sdk
];
preCheck = lib.optionalString stdenv.isLinux ''
PATH=$out/bin:$PATH
${redis-server}/bin/redis-server &
REDIS_PID=$!
'';
postCheck = lib.optionalString stdenv.isLinux ''
kill $REDIS_PID
'';
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 ];
};
}
|