2021-04-26 19:14:03 +00:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, cryptography
|
|
|
|
, http-ece
|
|
|
|
, py-vapid
|
|
|
|
, requests
|
|
|
|
, six
|
|
|
|
, coverage
|
|
|
|
, flake8
|
|
|
|
, mock
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pywebpush";
|
2021-08-11 14:56:57 +00:00
|
|
|
version = "1.14.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-bDbhZ5JoIZ5pO6lA2yvyVMJAygJmTeECtyaa/DxUVzE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-04-26 19:14:03 +00:00
|
|
|
cryptography
|
|
|
|
http-ece
|
|
|
|
py-vapid
|
|
|
|
requests
|
|
|
|
six
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-04-26 19:14:03 +00:00
|
|
|
coverage
|
|
|
|
flake8
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-08-11 14:56:57 +00:00
|
|
|
pythonImportsCheck = [ "pywebpush" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|