blob: d3a082afc811ded55903ba60205b88b67b665f43 (
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
65
66
67
68
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
aiohttp,
requests,
pytz,
# tests
mock,
pytest-aiohttp,
pytest-asyncio,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pyindego";
version = "3.2.2";
pyproject = true;
src = fetchFromGitHub {
owner = "sander1988";
repo = "pyIndego";
tag = version;
hash = "sha256-x8/MSbn+urmArQCyxZU1JEUyATJsPzp7bflymE+1rkk=";
};
postPatch = ''
sed -i "/addopts/d" pytest.ini
'';
build-system = [ setuptools ];
dependencies = [
aiohttp
requests
pytz
];
nativeCheckInputs = [
mock
pytest-aiohttp
pytest-asyncio
pytestCheckHook
];
disabledTests = [
# Typeerror, presumably outdated tests
"test_repr"
"test_client_response_errors"
"test_update_battery"
];
pythonImportsCheck = [ "pyIndego" ];
meta = {
description = "Python interface for Bosch API for lawnmowers";
homepage = "https://github.com/sander1988/pyIndego";
changelog = "https://github.com/sander1988/pyIndego/blob/${version}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ hexa ];
};
}
|