1{ lib
2, fetchPypi
3, buildPythonPackage
4, cryptography
5, http-ece
6, py-vapid
7, requests
8, six
9, coverage
10, flake8
11, mock
12, pytestCheckHook
13}:
14
15buildPythonPackage rec {
16 pname = "pywebpush";
17 version = "1.14.0";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-bDbhZ5JoIZ5pO6lA2yvyVMJAygJmTeECtyaa/DxUVzE=";
22 };
23
24 propagatedBuildInputs = [
25 cryptography
26 http-ece
27 py-vapid
28 requests
29 six
30 ];
31
32 nativeCheckInputs = [
33 coverage
34 flake8
35 mock
36 pytestCheckHook
37 ];
38
39 pythonImportsCheck = [ "pywebpush" ];
40
41 meta = with lib; {
42 description = "Webpush Data encryption library for Python";
43 homepage = "https://github.com/web-push-libs/pywebpush";
44 license = licenses.mpl20;
45 maintainers = with maintainers; [ peterhoeg ];
46 };
47}