1{
2 lib,
3 buildPythonPackage,
4 django,
5 fetchFromGitHub,
6 icalendar,
7 pytestCheckHook,
8 pytest-django,
9 python-dateutil,
10 pythonOlder,
11 pytz,
12 setuptools,
13}:
14
15buildPythonPackage rec {
16 pname = "django-scheduler";
17 version = "0.10.1";
18 pyproject = true;
19
20 disabled = pythonOlder "3.7";
21
22 src = fetchFromGitHub {
23 owner = "llazzaro";
24 repo = "django-scheduler";
25 tag = version;
26 hash = "sha256-dY2TPo15RRWrv7LheUNJSQl4d/HeptSMM/wQirRSI5w=";
27 };
28
29 build-system = [ setuptools ];
30
31 dependencies = [
32 django
33 python-dateutil
34 pytz
35 icalendar
36 ];
37
38 nativeCheckInputs = [
39 pytestCheckHook
40 pytest-django
41 ];
42
43 preCheck = ''
44 export DJANGO_SETTINGS_MODULE=tests.settings
45 '';
46
47 pythonImportsCheck = [ "schedule" ];
48
49 meta = with lib; {
50 description = "Calendar app for Django";
51 homepage = "https://github.com/llazzaro/django-scheduler";
52 changelog = "https://github.com/llazzaro/django-scheduler/releases/tag/${version}";
53 license = licenses.bsd3;
54 maintainers = with maintainers; [ derdennisop ];
55 };
56}