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