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