summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/django-recurrence/default.nix
blob: 26f8090cd52f1ea66be520d2bc02ed2b49b9e632 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
  buildPythonPackage,
  django,
  fetchFromGitHub,
  lib,
  python-dateutil,
  pytest-django,
  pytestCheckHook,
  pytest-cov-stub,
  pdm-backend,
}:
buildPythonPackage (finalAttrs: {
  pname = "django-recurrence";
  version = "1.14";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "jazzband";
    repo = "django-recurrence";
    tag = finalAttrs.version;
    hash = "sha256-Hw9QebQuQfhooa6rhJ1+y7DTgPgaVF9kZzQ9H7NshmM=";
  };

  build-system = [
    pdm-backend
  ];

  dependencies = [
    django
    python-dateutil
  ];

  pythonImportsCheck = [ "recurrence" ];

  nativeCheckInputs = [
    pytest-django
    pytest-cov-stub
    pytestCheckHook
  ];

  meta = {
    description = "Utility for working with recurring dates in Django";
    homepage = "https://github.com/jazzband/django-recurrence";
    changelog = "https://github.com/jazzband/django-recurrence/blob/${finalAttrs.src.tag}/CHANGES.rst";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ kurogeek ];
  };
})