1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 requests,
6 requests-oauthlib,
7 pythonOlder,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "homeconnect";
13 version = "0.8.0";
14 pyproject = true;
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-W475a+TlGiKRR1EDYiFVmApmQfmft85iBQLRnbEmcuA=";
21 };
22
23 build-system = [ setuptools ];
24
25 dependencies = [
26 requests
27 requests-oauthlib
28 ];
29
30 # Project has no tests
31 doCheck = false;
32
33 pythonImportsCheck = [ "homeconnect" ];
34
35 meta = with lib; {
36 description = "Python client for the BSH Home Connect REST API";
37 homepage = "https://github.com/DavidMStraub/homeconnect";
38 changelog = "https://github.com/DavidMStraub/homeconnect/releases/tag/v${version}";
39 license = licenses.mit;
40 maintainers = with maintainers; [ fab ];
41 };
42}