2021-02-05 17:12:51 +00:00
|
|
|
{ lib, fetchFromGitHub, buildPythonPackage, isPy27, click, redis }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "rq";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "1.10";
|
2020-08-20 17:08:02 +00:00
|
|
|
disabled = isPy27;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rq";
|
|
|
|
repo = "rq";
|
|
|
|
rev = "v${version}";
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "16k5qz5k3v232dzv99bxxw52jr2hb5ra08b6dkhqya98wjviq8l5";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# test require a running redis rerver, which is something we can't do yet
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
pythonImportsCheck = [ "rq" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ click redis ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A simple, lightweight library for creating background jobs, and processing them";
|
|
|
|
homepage = "https://github.com/nvie/rq/";
|
|
|
|
maintainers = with maintainers; [ mrmebelman ];
|
|
|
|
license = licenses.bsd2;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|