python310Packages.celery-redbeat: 2.0.0 -> 2.1.0
and fix compatibility with celery 5.3.0, which is still unreleased.
This commit is contained in:
parent
e823bb582a
commit
46e6fd028e
1 changed files with 16 additions and 6 deletions
|
@ -1,38 +1,48 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, python-dateutil
|
||||
, celery
|
||||
, redis
|
||||
, tenacity
|
||||
, pytestCheckHook
|
||||
, pytz
|
||||
, fakeredis
|
||||
, mock
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "celery-redbeat";
|
||||
version = "2.0.0";
|
||||
version = "2.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sibson";
|
||||
repo = "redbeat";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-pu4umhfNFZ30bQu5PcT2LYN4WGzFj4p4/qHm3pVIV+c=";
|
||||
hash = "sha256-WW/OYa7TWEKkata1eULir29wHaCnavBJebn4GrBzmWY=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
# celery 5.3.0 support
|
||||
url = "https://github.com/sibson/redbeat/commit/4240e17172a4d9d2744d5c4da3cfca0e0a024e2e.patch";
|
||||
hash = "sha256-quEfSFhv0sIpsKHX1CpFhbMC8LYXA8NASWYU8MMYPSk=";
|
||||
})
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
python-dateutil
|
||||
celery
|
||||
python-dateutil
|
||||
redis
|
||||
tenacity
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
fakeredis
|
||||
mock
|
||||
pytestCheckHook
|
||||
pytz
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "redbeat" ];
|
||||
|
|
Loading…
Reference in a new issue