Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 73 lines 1.4 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 setuptools, 8 9 # dependencies 10 celery, 11 cron-descriptor, 12 django-timezone-field, 13 python-crontab, 14 tzdata, 15 16 # tests 17 ephem, 18 pytest-django, 19 pytest-timeout, 20 pytestCheckHook, 21}: 22 23buildPythonPackage rec { 24 pname = "django-celery-beat"; 25 version = "2.8.1"; 26 pyproject = true; 27 28 src = fetchFromGitHub { 29 owner = "celery"; 30 repo = "django-celery-beat"; 31 tag = "v${version}"; 32 hash = "sha256-pakOpch5r2ug0UDSqEU34qr4Tz1/mkuFiHW+IOUuGcc="; 33 }; 34 35 pythonRelaxDeps = [ "django" ]; 36 37 build-system = [ setuptools ]; 38 39 dependencies = [ 40 celery 41 cron-descriptor 42 django-timezone-field 43 python-crontab 44 tzdata 45 ]; 46 47 nativeCheckInputs = [ 48 ephem 49 pytest-django 50 pytest-timeout 51 pytestCheckHook 52 ]; 53 54 disabledTestPaths = [ 55 # Connection error 56 "t/unit/test_schedulers.py" 57 ]; 58 59 disabledTests = [ 60 # AssertionError: 'At 02:00, only on Monday UTC' != 'At 02:00 AM, only on Monday UTC' 61 "test_long_name" 62 ]; 63 64 pythonImportsCheck = [ "django_celery_beat" ]; 65 66 meta = { 67 description = "Celery Periodic Tasks backed by the Django ORM"; 68 homepage = "https://github.com/celery/django-celery-beat"; 69 changelog = "https://github.com/celery/django-celery-beat/releases/tag/${src.tag}"; 70 license = lib.licenses.bsd3; 71 maintainers = with lib.maintainers; [ onny ]; 72 }; 73}