1{ lib
2, buildPythonPackage
3, isPy3k
4, fetchPypi
5, python
6}:
7
8buildPythonPackage rec {
9 pname = "pyhomematic";
10 version = "0.1.77";
11
12 disabled = !isPy3k;
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "00d95c21b95a17bc07586f69c976fb343a103adc0954d7b2d56c7160665625cb";
17 };
18
19 checkPhase = ''
20 ${python.interpreter} -m unittest
21 '';
22
23 pythonImportsCheck = [ "pyhomematic" ];
24
25 meta = with lib; {
26 description = "Python 3 Interface to interact with Homematic devices";
27 homepage = "https://github.com/danielperna84/pyhomematic";
28 license = licenses.mit;
29 maintainers = with maintainers; [ dotlambda ];
30 };
31}