about summary refs log tree commit diff
path: root/pkgs/development/python-modules/py-vapid/default.nix
blob: 5a546643e17e9a9885ecd4f0b7e15c7bac9f7ac6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
  lib,
  buildPythonPackage,
  fetchPypi,
  mock,
  pytestCheckHook,
  cryptography,
  pythonOlder,
}:

buildPythonPackage rec {
  pname = "py-vapid";
  version = "1.9.1";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    pname = "py_vapid";
    inherit version;
    hash = "sha256-/itUYb9Fx7r/EDnfaYHwO4f6qHzeBIKt36NbP+Y2rBs=";
  };

  propagatedBuildInputs = [ cryptography ];

  nativeCheckInputs = [
    mock
    pytestCheckHook
  ];

  meta = with lib; {
    description = "Library for VAPID header generation";
    mainProgram = "vapid";
    homepage = "https://github.com/mozilla-services/vapid";
    license = licenses.mpl20;
    maintainers = with maintainers; [ ];
  };
}