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