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