Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 celery, 5 cron-descriptor, 6 django-timezone-field, 7 ephem, 8 fetchPypi, 9 pytest-django, 10 pytest-timeout, 11 pytestCheckHook, 12 python-crontab, 13 pythonOlder, 14 setuptools, 15 tzdata, 16}: 17 18buildPythonPackage rec { 19 pname = "django-celery-beat"; 20 version = "2.6.0"; 21 pyproject = true; 22 23 disabled = pythonOlder "3.8"; 24 25 src = fetchPypi { 26 inherit pname version; 27 hash = "sha256-91stEpcx8SFL6Dg+GPrmv+rNtV3/shFs6EkiLAEG+a0="; 28 }; 29 30 nativeBuildInputs = [ setuptools ]; 31 32 propagatedBuildInputs = [ 33 cron-descriptor 34 python-crontab 35 celery 36 django-timezone-field 37 tzdata 38 ]; 39 40 nativeCheckInputs = [ 41 ephem 42 pytest-timeout 43 pytest-django 44 pytestCheckHook 45 ]; 46 47 disabledTestPaths = [ 48 # Connection error 49 "t/unit/test_schedulers.py" 50 ]; 51 52 pythonImportsCheck = [ "django_celery_beat" ]; 53 54 meta = with lib; { 55 description = "Celery Periodic Tasks backed by the Django ORM"; 56 homepage = "https://github.com/celery/django-celery-beat"; 57 changelog = "https://github.com/celery/django-celery-beat/releases/tag/v${version}"; 58 license = licenses.bsd3; 59 maintainers = with maintainers; [ onny ]; 60 }; 61}