0d9fc34957
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
43 lines
827 B
Nix
43 lines
827 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, click
|
|
, redis
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "rq";
|
|
version = "1.12.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rq";
|
|
repo = "rq";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-hV9Rntgt1Y4TBWGlunoXDKy8A2/9tum8aII8kFIZznU=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
click
|
|
redis
|
|
];
|
|
|
|
# Tests require a running Redis rerver
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"rq"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library for creating background jobs and processing them";
|
|
homepage = "https://github.com/nvie/rq/";
|
|
changelog = "https://github.com/rq/rq/releases/tag/v${version}";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ mrmebelman ];
|
|
};
|
|
}
|
|
|