depot/third_party/nixpkgs/pkgs/development/python-modules/pyhomematic/default.nix
Default email 14910f5943 Project import generated by Copybara.
GitOrigin-RevId: 5aaed40d22f0d9376330b6fa413223435ad6fee5
2022-01-13 15:06:32 -05:00

31 lines
642 B
Nix

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