at master 1.0 kB view raw
1{ 2 lib, 3 aiohttp, 4 buildPythonPackage, 5 cryptography, 6 fetchPypi, 7 http-ece, 8 mock, 9 py-vapid, 10 pytestCheckHook, 11 pythonOlder, 12 requests, 13 setuptools, 14 six, 15}: 16 17buildPythonPackage rec { 18 pname = "pywebpush"; 19 version = "2.0.3"; 20 pyproject = true; 21 22 disabled = pythonOlder "3.6"; 23 24 src = fetchPypi { 25 inherit pname version; 26 hash = "sha256-WEh448JD6HOiLbiJVQXZVxW8eW73TMG4/pn1lhdBYeM="; 27 }; 28 29 build-system = [ setuptools ]; 30 31 dependencies = [ 32 aiohttp 33 cryptography 34 http-ece 35 py-vapid 36 requests 37 six 38 ]; 39 40 nativeCheckInputs = [ 41 mock 42 pytestCheckHook 43 ]; 44 45 pythonImportsCheck = [ "pywebpush" ]; 46 47 meta = with lib; { 48 description = "Webpush Data encryption library for Python"; 49 homepage = "https://github.com/web-push-libs/pywebpush"; 50 changelog = "https://github.com/web-push-libs/pywebpush/releases/tag/${version}"; 51 license = licenses.mpl20; 52 maintainers = with maintainers; [ peterhoeg ]; 53 mainProgram = "pywebpush"; 54 }; 55}