about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/py-vapid/default.nix
blob: 89b7a045d0c1dbb2c1be3a1b2f37b56e0a9c1e7a (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.0";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-BmSreJl0LvKyhzl6TUYe9pHtDML1hyBRKNjPYX/9uRk=";
  };

  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; [ ];
  };
}