2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
|
|
|
, flake8, mock, nose, pytest
|
|
|
|
, cryptography
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "py-vapid";
|
2020-08-20 17:08:02 +00:00
|
|
|
version = "1.7.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-20 17:08:02 +00:00
|
|
|
sha256 = "f05cecaa9fc009515086d04b6117324f30eedf1a196f67fb1ec360a9dbdad4ee";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ cryptography ];
|
|
|
|
|
|
|
|
checkInputs = [ flake8 mock nose pytest ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "VAPID is a voluntary standard for WebPush subscription providers";
|
|
|
|
homepage = "https://github.com/mozilla-services/vapid";
|
|
|
|
license = licenses.mpl20;
|
|
|
|
};
|
|
|
|
}
|