1{ lib
2, fetchFromGitHub
3, buildPythonPackage
4, pythonOlder
5, click
6, redis
7}:
8
9buildPythonPackage rec {
10 pname = "rq";
11 version = "1.11.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-7l/ckkDchs+iRDZLHrm4TYwA9wAJAnw9kYSaAbSo0jY=";
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 license = licenses.bsd2;
39 maintainers = with maintainers; [ mrmebelman ];
40 };
41}
42