1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5
6 # build-system
7 setuptools,
8
9 # dependencies
10 aiohttp,
11 requests,
12 pytz,
13
14 # tests
15 mock,
16 pytest-aiohttp,
17 pytest-asyncio,
18 pytestCheckHook,
19}:
20
21buildPythonPackage rec {
22 pname = "pyindego";
23 version = "3.1.1";
24 pyproject = true;
25
26 src = fetchPypi {
27 pname = "pyIndego";
28 inherit version;
29 hash = "sha256-lRDi6qYMaPI8SiSNe0vzlKb92axujt44aei8opNPDug=";
30 };
31
32 build-system = [ setuptools ];
33
34 dependencies = [
35 aiohttp
36 requests
37 pytz
38 ];
39
40 nativeCheckInputs = [
41 mock
42 pytest-aiohttp
43 pytest-asyncio
44 pytestCheckHook
45 ];
46
47 disabledTests = [
48 # Typeerror, presumably outdated tests
49 "test_repr"
50 "test_client_response_errors"
51 "test_update_battery"
52 ];
53
54 pythonImportsCheck = [ "pyIndego" ];
55
56 meta = with lib; {
57 description = "Python interface for Bosch API for lawnmowers";
58 homepage = "https://github.com/jm-73/pyIndego";
59 changelog = "https://github.com/jm-73/pyIndego/blob/${version}/CHANGELOG.md";
60 license = licenses.mit;
61 maintainers = with maintainers; [ hexa ];
62 };
63}