Files
nixpkgs/pkgs/development/python-modules/django-webpush/default.nix
T
Peder Bergebakken Sundt ebc2389134 treewide: remove refs/tags/ from github release meta.changelog urls
diff of `jq <packages.json 'to_entries[]|"\(.key) \(.value.meta.changelog)"' -r`:

https://gist.github.com/pbsds/49b2e2ae5c9b967a0972bbc3c2597c12
2024-08-29 22:45:00 -04:00

49 lines
1.0 KiB
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";
rev = "refs/tags/${version}";
hash = "sha256-Mwp53apdPpBcn7VfDbyDlvLAVAG65UUBhT0w9OKjKbU=";
};
pythonRelaxDeps = [ "pywebpush" ];
build-system = [
setuptools-scm
];
dependencies = [
django
pywebpush
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [ "webpush" ];
meta = with lib; {
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/${lib.removePrefix "refs/tags/" src.rev}";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ derdennisop ];
};
}