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-03-08 16:32:21 +00:00
|
|
|
version = "2.1.9";
|
|
|
|
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;
|
|
|
|
hash = "sha256-SbuECT6851E+QNyyPaNTnKmH54fYovemSto8gvfMIKg=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|