python310Packages.py-vapid: disable on older Python releases

This commit is contained in:
Fabian Affolter 2022-12-14 09:17:40 +01:00 committed by GitHub
parent 50e4fd1869
commit 308f2df4d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,24 +1,41 @@
{ lib, buildPythonPackage, fetchPypi
, flake8, mock, nose, pytest
{ lib
, buildPythonPackage
, fetchPypi
, flake8
, mock
, nose
, pytest
, cryptography
, pythonOlder
}:
buildPythonPackage rec {
pname = "py-vapid";
version = "1.9.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-BmSreJl0LvKyhzl6TUYe9pHtDML1hyBRKNjPYX/9uRk=";
hash = "sha256-BmSreJl0LvKyhzl6TUYe9pHtDML1hyBRKNjPYX/9uRk=";
};
propagatedBuildInputs = [ cryptography ];
propagatedBuildInputs = [
cryptography
];
checkInputs = [ flake8 mock nose pytest ];
checkInputs = [
flake8
mock
nose
pytest
];
meta = with lib; {
description = "VAPID is a voluntary standard for WebPush subscription providers";
description = "Library for VAPID header generation";
homepage = "https://github.com/mozilla-services/vapid";
license = licenses.mpl20;
maintainers = with maintainers; [ ];
};
}