2018-02-09 23:24:30 +01:00
|
|
|
{ stdenv, buildPythonPackage, isPy3k, fetchFromGitHub }:
|
2018-01-14 12:31:27 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyhomematic";
|
2018-03-21 15:22:09 +01:00
|
|
|
version = "0.1.40";
|
2018-01-14 12:31:27 +01:00
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2018-02-09 23:24:30 +01:00
|
|
|
# PyPI tarball does not include tests/ directory
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "danielperna84";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2018-03-21 15:22:09 +01:00
|
|
|
sha256 = "0rflfak505cgc69594yc9chz5mblqvc2d7bbbfcddzhlhs5qcsq2";
|
2018-01-14 12:31:27 +01:00
|
|
|
};
|
|
|
|
|
2018-03-18 12:55:27 +01:00
|
|
|
# Unreliable timing: https://github.com/danielperna84/pyhomematic/issues/126
|
|
|
|
doCheck = false;
|
|
|
|
|
2018-01-14 12:31:27 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Python 3 Interface to interact with Homematic devices";
|
|
|
|
homepage = https://github.com/danielperna84/pyhomematic;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|