python311Packages.pywebpush: refactor

This commit is contained in:
Fabian Affolter 2024-03-29 16:12:44 +01:00
parent 3c9e0924c4
commit 3da6ce6c18
1 changed files with 18 additions and 10 deletions

View File

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