2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
isPy27,
|
|
|
|
fetchFromGitHub,
|
|
|
|
django,
|
|
|
|
redis,
|
|
|
|
rq,
|
|
|
|
sentry-sdk,
|
2021-12-06 16:07:01 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-rq";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "2.10.1";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rq";
|
|
|
|
repo = pname;
|
2023-01-20 10:41:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-VE4OFFpNR9txCyhs6Ye36DBWb8DNlCT1BO436KwFMY8=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
django
|
|
|
|
redis
|
|
|
|
rq
|
|
|
|
sentry-sdk
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "django_rq" ];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
doCheck = false; # require redis-server
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple app that provides django integration for RQ (Redis Queue)";
|
|
|
|
homepage = "https://github.com/rq/django-rq";
|
2023-02-09 11:40:11 +00:00
|
|
|
changelog = "https://github.com/rq/django-rq/releases/tag/v${version}";
|
2021-12-06 16:07:01 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
};
|
|
|
|
}
|