blob: b08a4663bed063abd50470c8e24e0992146e8ef9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
{
buildPythonPackage,
click,
fetchFromGitHub,
httpx,
lib,
loguru,
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
respx,
setuptools,
xmltodict,
}:
buildPythonPackage rec {
pname = "prowlpy";
version = "1.1.3";
pyproject = true;
src = fetchFromGitHub {
owner = "OMEGARAZER";
repo = "prowlpy";
tag = "v${version}";
hash = "sha256-AotlO1CTe1jv9nu9drQWXYi445Pl5c+89/ep3i+vWwA=";
};
build-system = [ setuptools ];
dependencies = [
httpx
xmltodict
]
++ httpx.optional-dependencies.http2;
optional-dependencies = {
cli = [
click
loguru
];
};
pythonImportsCheck = [ "prowlpy" ];
nativeCheckInputs = [
pytest-asyncio
pytest-cov-stub
pytestCheckHook
respx
]
++ lib.concatAttrValues optional-dependencies;
# tests fail without this
pytestFlags = [ "-v" ];
meta = {
changelog = "https://github.com/OMEGARAZER/prowlpy/blob/${src.tag}/CHANGELOG.md";
description = "Send push notifications to iPhones using the Prowl API";
homepage = "https://github.com/OMEGARAZER/prowlpy";
license = lib.licenses.gpl3Only;
mainProgram = "prowlpy";
maintainers = [ lib.maintainers.dotlambda ];
};
}
|