60f07311b9
GitOrigin-RevId: f8e2ebd66d097614d51a56a755450d4ae1632df1
48 lines
813 B
Nix
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 ];
|
|
};
|
|
}
|