Something went wrong. Try again.
lol
Something went wrong. Try again.
1.6 kB · 71 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172{ lib, buildPythonPackage, django, fetchFromGitHub, icalendar, pytestCheckHook, pytest-django, python-dateutil, pytz, setuptools,}:
buildPythonPackage rec { pname = "django-scheduler"; version = "1.0"; pyproject = true;
src = fetchFromGitHub { owner = "llazzaro"; repo = "django-scheduler"; tag = "v${version}"; hash = "sha256-TgIp2oqju3O6zPp3WMEB9HeNgAJILNkWWfbDFmMQ3eA="; };
build-system = [ setuptools ];
dependencies = [ django icalendar python-dateutil pytz ];
nativeCheckInputs = [ pytestCheckHook pytest-django ];
preCheck = '' export DJANGO_SETTINGS_MODULE=tests.settings '';
patches = [ # Remove in Django 5.1 # https://github.com/llazzaro/django-scheduler/pull/567 ./index_together.patch ];
postPatch = '' # Remove in Django 5.1 substituteInPlace tests/settings.py \ --replace-fail "SHA1PasswordHasher" "PBKDF2PasswordHasher" '';
disabledTests = lib.optionals (lib.versionAtLeast django.version "5.1") [ # test_delete_event_authenticated_user - AssertionError: 302 != 200 "test_delete_event_authenticated_user" "test_event_creation_authenticated_user" ];
pythonImportsCheck = [ "schedule" ];
meta = { description = "Calendar app for Django"; homepage = "https://github.com/llazzaro/django-scheduler"; changelog = "https://github.com/llazzaro/django-scheduler/releases/tag/${src.tag}"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ derdennisop ]; };}