Files
nixpkgs/pkgs/development/python-modules/django-webpush/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

49 lines
995 B
Nix

{
lib,
buildPythonPackage,
django,
fetchFromGitHub,
pythonOlder,
pywebpush,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "django-webpush";
version = "0.3.4";
pyproject = true;
disabled = pythonOlder "3.7";
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 ];
};
}