1{ lib
2, buildPythonPackage
3, cryptography
4, fetchFromGitHub
5, getmac
6, pythonOlder
7, requests
8, zeroconf
9}:
10
11buildPythonPackage rec {
12 pname = "boschshcpy";
13 version = "0.2.57";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "tschamm";
20 repo = pname;
21 rev = version;
22 hash = "sha256-/TD5zvvtOkoVG+EJzNNSMbOKXm78Di9tDrBIxpN4wbg=";
23 };
24
25 propagatedBuildInputs = [
26 cryptography
27 getmac
28 requests
29 zeroconf
30 ];
31
32 # Project has no tests
33 doCheck = false;
34
35 pythonImportsCheck = [
36 "boschshcpy"
37 ];
38
39 meta = with lib; {
40 description = "Python module to work with the Bosch Smart Home Controller API";
41 homepage = "https://github.com/tschamm/boschshcpy";
42 license = with licenses; [ bsd3 ];
43 maintainers = with maintainers; [ fab ];
44 };
45}