evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / apprise / default.nix
blob95b77a94b67397f88752e3bbe846974683f668a8
2   lib,
3   apprise,
4   babel,
5   buildPythonPackage,
6   click,
7   cryptography,
8   fetchPypi,
9   gntp,
10   installShellFiles,
11   markdown,
12   paho-mqtt,
13   pytest-mock,
14   pytestCheckHook,
15   pythonOlder,
16   pyyaml,
17   requests,
18   requests-oauthlib,
19   setuptools,
20   testers,
23 buildPythonPackage rec {
24   pname = "apprise";
25   version = "1.9.0";
26   pyproject = true;
28   disabled = pythonOlder "3.7";
30   src = fetchPypi {
31     inherit pname version;
32     hash = "sha256-tck6/WMxr+S2OlXRzqkHbke+y0uom1YrGBwT4luwx9Y=";
33   };
35   nativeBuildInputs = [ installShellFiles ];
37   build-system = [
38     babel
39     setuptools
40   ];
42   dependencies = [
43     click
44     cryptography
45     markdown
46     pyyaml
47     requests
48     requests-oauthlib
49   ];
51   nativeCheckInputs = [
52     gntp
53     paho-mqtt
54     pytest-mock
55     pytestCheckHook
56   ];
58   postInstall = ''
59     installManPage packaging/man/apprise.1
60   '';
62   pythonImportsCheck = [ "apprise" ];
64   passthru = {
65     tests.version = testers.testVersion {
66       package = apprise;
67       version = "v${version}";
68     };
69   };
71   meta = {
72     description = "Push Notifications that work with just about every platform";
73     homepage = "https://github.com/caronc/apprise";
74     changelog = "https://github.com/caronc/apprise/releases/tag/v${version}";
75     license = lib.licenses.bsd3;
76     maintainers = with lib.maintainers; [ getchoo ];
77     mainProgram = "apprise";
78   };