Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / django-webpush / default.nix
blob5f04dccb1ca64cb6b889e6c2ef58b79c1ce9e659
1 { lib
2 , buildPythonPackage
3 , django
4 , fetchFromGitHub
5 , pythonOlder
6 , pythonRelaxDepsHook
7 , pywebpush
8 , setuptools-scm
9 }:
11 buildPythonPackage rec {
12   pname = "django-webpush";
13   version = "0.3.4";
14   pyproject = true;
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "safwanrahman";
20     repo = "django-webpush";
21     rev = "refs/tags/${version}";
22     hash = "sha256-Mwp53apdPpBcn7VfDbyDlvLAVAG65UUBhT0w9OKjKbU=";
23   };
25   pythonRelaxDeps = [
26     "pywebpush"
27   ];
29   build-system = [
30     pythonRelaxDepsHook
31     setuptools-scm
32   ];
34   dependencies = [
35     django
36     pywebpush
37   ];
39   # Module has no tests
40   doCheck = false;
42   pythonImportsCheck = [
43     "webpush"
44   ];
46   meta = with lib; {
47     description = "Module for integrating and sending Web Push Notification in Django Application";
48     homepage = "https://github.com/safwanrahman/django-webpush/";
49     changelog = "https://github.com/safwanrahman/django-webpush/releases/tag/${src.rev}";
50     license = licenses.gpl3Plus;
51     maintainers = with maintainers; [ derdennisop ];
52   };