2021-02-22 21:28:39 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pyserial
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-velbus";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "2.1.4";
|
2021-02-22 21:28:39 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "thomasdelaet";
|
|
|
|
repo = pname;
|
2021-06-28 23:13:55 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "1z0a7fc9xfrcpwi9xiimxsgbzbp2iwyi1rij6vqd5z47mzi49fv9";
|
2021-02-22 21:28:39 +00:00
|
|
|
};
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyserial
|
|
|
|
];
|
2021-02-22 21:28:39 +00:00
|
|
|
|
|
|
|
# Project has not tests
|
|
|
|
doCheck = false;
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2021-02-22 21:28:39 +00:00
|
|
|
pythonImportsCheck = [ "velbus" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library to control the Velbus home automation system";
|
|
|
|
homepage = "https://github.com/thomasdelaet/python-velbus";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|