depot/third_party/nixpkgs/pkgs/development/python-modules/django-webpush/default.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

49 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, django
, fetchFromGitHub
, pythonOlder
, pythonRelaxDepsHook
, 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=";
};
nativeBuildInputs = [
pythonRelaxDepsHook
setuptools-scm
];
propagatedBuildInputs = [
django
pywebpush
];
# nothing to test
doCheck = false;
pythonImportsCheck = [
"webpush"
];
meta = with lib; {
description = "A Package made 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/${src.rev}";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ derdennisop ];
};
}