depot/third_party/nixpkgs/pkgs/development/python-modules/pywebpush/default.nix
Default email 60f07311b9 Project import generated by Copybara.
GitOrigin-RevId: f8e2ebd66d097614d51a56a755450d4ae1632df1
2024-02-06 17:22:34 -08:00

48 lines
813 B
Nix

{ lib
, fetchPypi
, buildPythonPackage
, cryptography
, http-ece
, py-vapid
, requests
, six
, coverage
, flake8
, mock
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pywebpush";
version = "1.14.1";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-+I1+K/XofGFt+wS4yVwRkjjFEWWbAvc17nfMFoQoVe4=";
};
propagatedBuildInputs = [
cryptography
http-ece
py-vapid
requests
six
];
nativeCheckInputs = [
coverage
flake8
mock
pytestCheckHook
];
pythonImportsCheck = [ "pywebpush" ];
meta = with lib; {
description = "Webpush Data encryption library for Python";
homepage = "https://github.com/web-push-libs/pywebpush";
license = licenses.mpl20;
maintainers = with maintainers; [ peterhoeg ];
};
}