1{ lib
2, fetchFromGitHub
3, buildPythonPackage
4, pythonOlder
5, click
6, redis
7}:
8
9buildPythonPackage rec {
10 pname = "rq";
11 version = "1.15.1";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "rq";
18 repo = "rq";
19 rev = "refs/tags/v${version}";
20 hash = "sha256-cymNXFI+6YEVw2Pc7u6+vroC0428oW7BTLxyBgPqLng=";
21 };
22
23 propagatedBuildInputs = [
24 click
25 redis
26 ];
27
28 # Tests require a running Redis rerver
29 doCheck = false;
30
31 pythonImportsCheck = [
32 "rq"
33 ];
34
35 meta = with lib; {
36 description = "Library for creating background jobs and processing them";
37 homepage = "https://github.com/nvie/rq/";
38 changelog = "https://github.com/rq/rq/releases/tag/v${version}";
39 license = licenses.bsd2;
40 maintainers = with maintainers; [ mrmebelman ];
41 };
42}
43