Merge pull request #300038 from fabaff/pywebpush-bump

python312Packages.pywebpush: 1.14.1 -> 2.0.0
This commit is contained in:
Fabian Affolter 2024-03-29 22:55:18 +01:00 committed by GitHub
commit 9449234cad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 31 additions and 18 deletions

View File

@ -22,17 +22,21 @@ buildPythonPackage rec {
hash = "sha256-Mwp53apdPpBcn7VfDbyDlvLAVAG65UUBhT0w9OKjKbU="; hash = "sha256-Mwp53apdPpBcn7VfDbyDlvLAVAG65UUBhT0w9OKjKbU=";
}; };
nativeBuildInputs = [ pythonRelaxDeps = [
"pywebpush"
];
build-system = [
pythonRelaxDepsHook pythonRelaxDepsHook
setuptools-scm setuptools-scm
]; ];
propagatedBuildInputs = [ dependencies = [
django django
pywebpush pywebpush
]; ];
# nothing to test # Module has no tests
doCheck = false; doCheck = false;
pythonImportsCheck = [ pythonImportsCheck = [
@ -40,7 +44,7 @@ buildPythonPackage rec {
]; ];
meta = with lib; { meta = with lib; {
description = "A Package made for integrating and sending Web Push Notification in Django Application"; description = "Module for integrating and sending Web Push Notification in Django Application";
homepage = "https://github.com/safwanrahman/django-webpush/"; homepage = "https://github.com/safwanrahman/django-webpush/";
changelog = "https://github.com/safwanrahman/django-webpush/releases/tag/${src.rev}"; changelog = "https://github.com/safwanrahman/django-webpush/releases/tag/${src.rev}";
license = licenses.gpl3Plus; license = licenses.gpl3Plus;

View File

@ -1,28 +1,36 @@
{ lib { lib
, fetchPypi , aiohttp
, buildPythonPackage , buildPythonPackage
, cryptography , cryptography
, fetchPypi
, http-ece , http-ece
, py-vapid
, requests
, six
, coverage
, flake8
, mock , mock
, py-vapid
, pytestCheckHook , pytestCheckHook
, pythonOlder
, requests
, setuptools
, six
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pywebpush"; pname = "pywebpush";
version = "1.14.1"; version = "2.0.0";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-+I1+K/XofGFt+wS4yVwRkjjFEWWbAvc17nfMFoQoVe4="; hash = "sha256-A8zD6XW2A3S3Y0xJVZVha+Ujvyx9oNl26E/amsjGMwE=";
}; };
propagatedBuildInputs = [ build-system = [
setuptools
];
dependencies = [
aiohttp
cryptography cryptography
http-ece http-ece
py-vapid py-vapid
@ -31,19 +39,20 @@ buildPythonPackage rec {
]; ];
nativeCheckInputs = [ nativeCheckInputs = [
coverage
flake8
mock mock
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [ "pywebpush" ]; pythonImportsCheck = [
"pywebpush"
];
meta = with lib; { meta = with lib; {
description = "Webpush Data encryption library for Python"; description = "Webpush Data encryption library for Python";
mainProgram = "pywebpush";
homepage = "https://github.com/web-push-libs/pywebpush"; homepage = "https://github.com/web-push-libs/pywebpush";
changelog = "https://github.com/web-push-libs/pywebpush/releases/tag/${version}";
license = licenses.mpl20; license = licenses.mpl20;
maintainers = with maintainers; [ peterhoeg ]; maintainers = with maintainers; [ peterhoeg ];
mainProgram = "pywebpush";
}; };
} }