2021-03-14 18:36:19 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, isPy3k
|
|
|
|
, fetchPypi
|
|
|
|
, python
|
|
|
|
}:
|
2018-01-14 11:31:27 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyhomematic";
|
2021-03-14 18:36:19 +00:00
|
|
|
version = "0.1.72";
|
2018-01-14 11:31:27 +00:00
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2018-05-22 11:08:38 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-14 18:36:19 +00:00
|
|
|
sha256 = "a1d44103b90418d9c8cde4699a1c671d57d12469be23a45e93bfc00df28ef11b";
|
2018-01-14 11:31:27 +00:00
|
|
|
};
|
|
|
|
|
2021-03-14 18:36:19 +00:00
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pyhomematic" ];
|
2018-03-18 11:55:27 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-01-14 11:31:27 +00:00
|
|
|
description = "Python 3 Interface to interact with Homematic devices";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/danielperna84/pyhomematic";
|
2018-01-14 11:31:27 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|