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