Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / celery-redbeat / default.nix
bloba61eacfcb86c2d0334d7b04ca14710dc227816de
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , fetchpatch
5 , python-dateutil
6 , celery
7 , redis
8 , tenacity
9 , pytestCheckHook
10 , pytz
11 , fakeredis
12 , mock
15 buildPythonPackage rec {
16   pname = "celery-redbeat";
17   version = "2.1.0";
19   src = fetchFromGitHub {
20     owner = "sibson";
21     repo = "redbeat";
22     rev = "v${version}";
23     hash = "sha256-WW/OYa7TWEKkata1eULir29wHaCnavBJebn4GrBzmWY=";
24   };
26   patches = [
27     (fetchpatch {
28       # celery 5.3.0 support
29       url = "https://github.com/sibson/redbeat/commit/4240e17172a4d9d2744d5c4da3cfca0e0a024e2e.patch";
30       hash = "sha256-quEfSFhv0sIpsKHX1CpFhbMC8LYXA8NASWYU8MMYPSk=";
31     })
32   ];
34   propagatedBuildInputs = [
35     celery
36     python-dateutil
37     redis
38     tenacity
39   ];
41   nativeCheckInputs = [
42     fakeredis
43     mock
44     pytestCheckHook
45     pytz
46   ];
48   pythonImportsCheck = [ "redbeat" ];
50   meta = with lib; {
51     description = "Database-backed Periodic Tasks";
52     homepage = "https://github.com/celery/django-celery-beat";
53     license = licenses.bsd3;
54     maintainers = with maintainers; [ onny ];
55   };