f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
33 lines
659 B
Nix
33 lines
659 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
isPy3k,
|
|
fetchPypi,
|
|
python,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyhomematic";
|
|
version = "0.1.78";
|
|
format = "setuptools";
|
|
|
|
disabled = !isPy3k;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-uB9aDa1urIwL2DBdBwPi0sHWPW7SUZ3EaAjuMLSOudc=";
|
|
};
|
|
|
|
checkPhase = ''
|
|
${python.interpreter} -m unittest
|
|
'';
|
|
|
|
pythonImportsCheck = [ "pyhomematic" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python 3 Interface to interact with Homematic devices";
|
|
homepage = "https://github.com/danielperna84/pyhomematic";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|