1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 mock,
6 pytestCheckHook,
7 cryptography,
8 pythonOlder,
9}:
10
11buildPythonPackage rec {
12 pname = "py-vapid";
13 version = "1.9.1";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchPypi {
19 pname = "py_vapid";
20 inherit version;
21 hash = "sha256-/itUYb9Fx7r/EDnfaYHwO4f6qHzeBIKt36NbP+Y2rBs=";
22 };
23
24 propagatedBuildInputs = [ cryptography ];
25
26 nativeCheckInputs = [
27 mock
28 pytestCheckHook
29 ];
30
31 meta = with lib; {
32 description = "Library for VAPID header generation";
33 mainProgram = "vapid";
34 homepage = "https://github.com/mozilla-services/vapid";
35 license = licenses.mpl20;
36 maintainers = [ ];
37 };
38}