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;
|
2021-08-11 14:56:57 +00:00
|
|
|
sha256 = "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
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
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 ];
|
|
|
|
};
|
|
|
|
}
|