summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/django-webpush/default.nix
blob: e9bf32730122ef37235690b2091afe0fc3eabd62 (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
{
  lib,
  buildPythonPackage,
  django,
  fetchFromGitHub,
  pywebpush,
  setuptools-scm,
}:

buildPythonPackage rec {
  pname = "django-webpush";
  version = "0.3.4";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "safwanrahman";
    repo = "django-webpush";
    tag = version;
    hash = "sha256-Mwp53apdPpBcn7VfDbyDlvLAVAG65UUBhT0w9OKjKbU=";
  };

  pythonRelaxDeps = [ "pywebpush" ];

  build-system = [
    setuptools-scm
  ];

  dependencies = [
    django
    pywebpush
  ];

  # Module has no tests
  doCheck = false;

  pythonImportsCheck = [ "webpush" ];

  meta = {
    description = "Module for integrating and sending Web Push Notification in Django Application";
    homepage = "https://github.com/safwanrahman/django-webpush/";
    changelog = "https://github.com/safwanrahman/django-webpush/releases/tag/${version}";
    license = lib.licenses.gpl3Plus;
    maintainers = with lib.maintainers; [ derdennisop ];
  };
}