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-06-06 20:05:31 +01:00
|
|
|
version = "0.1.73";
|
2018-01-14 11:31:27 +00:00
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2018-05-22 11:08:38 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-06 20:05:31 +01:00
|
|
|
sha256 = "sha256-KaeheCIJgAqC68rgE71b1sSatSH25phGk662fnuOOsk=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|