Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / django-scheduler / default.nix
blobd8db8c596173fec75c4950175bdd159d254f041b
1 { lib
2 , buildPythonPackage
3 , django
4 , fetchFromGitHub
5 , icalendar
6 , pytest
7 , pytest-django
8 , python
9 , python-dateutil
10 , pythonOlder
11 , pytz
14 buildPythonPackage rec {
15   pname = "django-scheduler";
16   version = "0.10.1";
17   format = "setuptools";
19   disabled = pythonOlder "3.7";
21   src = fetchFromGitHub {
22     owner = "llazzaro";
23     repo = "django-scheduler";
24     rev = "refs/tags/${version}";
25     hash = "sha256-dY2TPo15RRWrv7LheUNJSQl4d/HeptSMM/wQirRSI5w=";
26   };
28   propagatedBuildInputs = [
29     django
30     python-dateutil
31     pytz
32     icalendar
33   ];
35   checkPhase = ''
36     runHook preCheck
37     ${python.interpreter} -m django check --settings=tests.settings
38     runHook postCheck
39   '';
41   pythonImportsCheck = [
42     "schedule"
43   ];
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   };