2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pyserial,
|
|
|
|
pythonOlder,
|
2021-02-22 21:28:39 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-velbus";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "2.1.14";
|
2023-03-08 16:32:21 +00:00
|
|
|
format = "setuptools";
|
2021-02-22 21:28:39 +00:00
|
|
|
|
2023-03-08 16:32:21 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-3eDfXPMO167QI/umLBjlHTBV67XQ8QYkg4EzfrRTw6M=";
|
2021-02-22 21:28:39 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +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
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "velbus" ];
|
2021-02-22 21:28:39 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|