Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 isPy27, 5 fetchFromGitHub, 6 django, 7 redis, 8 rq, 9 sentry-sdk, 10}: 11 12buildPythonPackage rec { 13 pname = "django-rq"; 14 version = "3.0.1"; 15 format = "setuptools"; 16 disabled = isPy27; 17 18 src = fetchFromGitHub { 19 owner = "rq"; 20 repo = "django-rq"; 21 tag = "v${version}"; 22 hash = "sha256-f4ilMKMWNr/NVKRhylr0fFiKFEKHXU/zIlPnq7fCYNs="; 23 }; 24 25 propagatedBuildInputs = [ 26 django 27 redis 28 rq 29 sentry-sdk 30 ]; 31 32 pythonImportsCheck = [ "django_rq" ]; 33 34 doCheck = false; # require redis-server 35 36 meta = with lib; { 37 description = "Simple app that provides django integration for RQ (Redis Queue)"; 38 homepage = "https://github.com/rq/django-rq"; 39 changelog = "https://github.com/rq/django-rq/releases/tag/${src.tag}"; 40 license = licenses.mit; 41 maintainers = with maintainers; [ hexa ]; 42 }; 43}