depot/third_party/nixpkgs/pkgs/development/python-modules/pyhomematic/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

33 lines
661 B
Nix

{
lib,
buildPythonPackage,
isPy3k,
fetchPypi,
python,
}:
buildPythonPackage rec {
pname = "pyhomematic";
version = "0.1.78";
format = "setuptools";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "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 ];
};
}