1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 wheel,
7 # dependencies
8 django,
9 apscheduler,
10 # tests
11 pytestCheckHook,
12 pytest-django,
13 pytz,
14}:
15
16buildPythonPackage rec {
17 pname = "django-apscheduler";
18 version = "0.7.0";
19 pyproject = true;
20
21 src = fetchFromGitHub {
22 owner = "jcass77";
23 repo = "django-apscheduler";
24 rev = "v${version}";
25 hash = "sha256-2YSVX4FxE1OfJkSYV9IRKd2scV4BrMA/mBzJARQCX38=";
26 };
27
28 build-system = [
29 setuptools
30 wheel
31 ];
32
33 dependencies = [
34 django
35 apscheduler
36 ];
37
38 nativeCheckInputs = [
39 pytestCheckHook
40 pytest-django
41 pytz
42 ];
43
44 env.DJANGO_SETTINGS_MODULE = "tests.settings";
45
46 pythonImportsCheck = [
47 "django_apscheduler"
48 ];
49
50 meta = {
51 description = "APScheduler for Django";
52 homepage = "https://github.com/jcass77/django-apscheduler";
53 license = lib.licenses.mit;
54 maintainers = with lib.maintainers; [ happysalada ];
55 };
56}