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