mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
45 lines
859 B
Nix
45 lines
859 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, isPy27
|
|
, fetchFromGitHub
|
|
, django
|
|
, redis
|
|
, rq
|
|
, sentry-sdk
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-rq";
|
|
version = "2.8.1";
|
|
format = "setuptools";
|
|
disabled = isPy27;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rq";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-Rabw6FIoSg9Cj4+tRO3BmBAeo9yr8KwU5xTPFL0JkOs=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
django
|
|
redis
|
|
rq
|
|
sentry-sdk
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"django_rq"
|
|
];
|
|
|
|
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";
|
|
changelog = "https://github.com/rq/django-rq/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ hexa ];
|
|
};
|
|
}
|