48 lines
886 B
Nix
48 lines
886 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
setuptools,
|
|
mock,
|
|
pytestCheckHook,
|
|
cryptography,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "py-vapid";
|
|
version = "1.9.2";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
pname = "py_vapid";
|
|
inherit version;
|
|
hash = "sha256-PIlzts+DhK0MmuZNYnDMxIDguSxwLY9eoswD5rUSR/k=";
|
|
};
|
|
|
|
patches = [
|
|
# Fix tests with latest cryptography
|
|
# Upstream PR: https://github.com/web-push-libs/vapid/pull/110
|
|
./cryptography.patch
|
|
];
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ 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 = [ ];
|
|
};
|
|
}
|