depot/third_party/nixpkgs/pkgs/development/python-modules/pyhomematic/default.nix
Default email 620eecebfb Project import generated by Copybara.
GitOrigin-RevId: 2deb07f3ac4eeb5de1c12c4ba2911a2eb1f6ed61
2021-10-28 08:52:43 +02:00

31 lines
642 B
Nix

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