From 5e679251a950e101d67a7c6495dee84c49180fec Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 19 Oct 2022 19:02:51 +0200 Subject: [PATCH] python310Packages.django-celery-beat: disable on older Python releases --- .../python-modules/django-celery-beat/default.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/django-celery-beat/default.nix b/pkgs/development/python-modules/django-celery-beat/default.nix index 6e2fd1925a2..b933a1f89ce 100644 --- a/pkgs/development/python-modules/django-celery-beat/default.nix +++ b/pkgs/development/python-modules/django-celery-beat/default.nix @@ -9,15 +9,20 @@ , pytest-timeout , pytest-django , case -, pytestCheckHook }: +, pytestCheckHook +, pythonOlder +}: buildPythonPackage rec { pname = "django-celery-beat"; version = "2.4.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-WO/pRg5Dc6JBwrPYOVGPKaKK4ZvICo26INogTH6lBhM="; + hash = "sha256-WO/pRg5Dc6JBwrPYOVGPKaKK4ZvICo26INogTH6lBhM="; }; propagatedBuildInputs = [ @@ -40,7 +45,9 @@ buildPythonPackage rec { "t/unit/test_schedulers.py" ]; - pythonImportsCheck = [ "django_celery_beat" ]; + pythonImportsCheck = [ + "django_celery_beat" + ]; meta = with lib; { description = "Celery Periodic Tasks backed by the Django ORM";