depot/third_party/nixpkgs/pkgs/development/python-modules/pywebpush/default.nix
Default email ae2dc6aea6 Project import generated by Copybara.
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
2024-10-11 07:15:48 +02:00

55 lines
1,002 B
Nix

{
lib,
aiohttp,
buildPythonPackage,
cryptography,
fetchPypi,
http-ece,
mock,
py-vapid,
pytestCheckHook,
pythonOlder,
requests,
setuptools,
six,
}:
buildPythonPackage rec {
pname = "pywebpush";
version = "2.0.1";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-cuNYauyJoGNzwFheb5fG/QuBUZ5B8yiWo2OZCez0XbA=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
cryptography
http-ece
py-vapid
requests
six
];
nativeCheckInputs = [
mock
pytestCheckHook
];
pythonImportsCheck = [ "pywebpush" ];
meta = with lib; {
description = "Webpush Data encryption library for Python";
homepage = "https://github.com/web-push-libs/pywebpush";
changelog = "https://github.com/web-push-libs/pywebpush/releases/tag/${version}";
license = licenses.mpl20;
maintainers = with maintainers; [ peterhoeg ];
mainProgram = "pywebpush";
};
}