2021-02-22 21:28:39 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2023-03-08 16:32:21 +00:00
|
|
|
, fetchPypi
|
2021-02-22 21:28:39 +00:00
|
|
|
, pyserial
|
2023-03-08 16:32:21 +00:00
|
|
|
, pythonOlder
|
2021-02-22 21:28:39 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-velbus";
|
2023-08-10 07:59:29 +00:00
|
|
|
version = "2.1.12";
|
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-08-10 07:59:29 +00:00
|
|
|
hash = "sha256-X0jg1qd4rWbaRZqgMBJKOZD50sFq3Eyhw9RU6cEjORo=";
|
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
|
|
|
|
2023-03-08 16:32:21 +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 ];
|
|
|
|
};
|
|
|
|
}
|