nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 django,
5 fetchFromGitHub,
6 pywebpush,
7 setuptools-scm,
8}:
9
10buildPythonPackage rec {
11 pname = "django-webpush";
12 version = "0.3.4";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "safwanrahman";
17 repo = "django-webpush";
18 tag = version;
19 hash = "sha256-Mwp53apdPpBcn7VfDbyDlvLAVAG65UUBhT0w9OKjKbU=";
20 };
21
22 pythonRelaxDeps = [ "pywebpush" ];
23
24 build-system = [
25 setuptools-scm
26 ];
27
28 dependencies = [
29 django
30 pywebpush
31 ];
32
33 # Module has no tests
34 doCheck = false;
35
36 pythonImportsCheck = [ "webpush" ];
37
38 meta = {
39 description = "Module for integrating and sending Web Push Notification in Django Application";
40 homepage = "https://github.com/safwanrahman/django-webpush/";
41 changelog = "https://github.com/safwanrahman/django-webpush/releases/tag/${version}";
42 license = lib.licenses.gpl3Plus;
43 maintainers = with lib.maintainers; [ derdennisop ];
44 };
45}