2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
awesomeversion,
|
|
|
|
buildPythonPackage,
|
|
|
|
click,
|
|
|
|
crcmod,
|
|
|
|
fetchFromGitHub,
|
|
|
|
getmac,
|
|
|
|
intelhex,
|
|
|
|
paho-mqtt,
|
|
|
|
pyserial,
|
|
|
|
pyserial-asyncio,
|
|
|
|
pytest-sugar,
|
|
|
|
pytest-timeout,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
voluptuous,
|
2021-02-22 21:28:39 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pymysensors";
|
2022-09-11 15:47:08 +00:00
|
|
|
version = "0.24.1";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2022-09-11 15:47:08 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2021-02-22 21:28:39 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "theolind";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-09-11 15:47:08 +00:00
|
|
|
hash = "sha256-3t9YrSJf02kc5CuTqPBc/qNJV7yy7Vke4WqhtuOaAYo=";
|
2021-02-22 21:28:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-09-11 15:47:08 +00:00
|
|
|
awesomeversion
|
2021-02-22 21:28:39 +00:00
|
|
|
click
|
|
|
|
crcmod
|
|
|
|
getmac
|
|
|
|
intelhex
|
|
|
|
pyserial
|
|
|
|
pyserial-asyncio
|
|
|
|
voluptuous
|
|
|
|
];
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
optional-dependencies = {
|
2024-06-05 15:53:02 +00:00
|
|
|
mqtt-client = [ paho-mqtt ];
|
2022-09-11 15:47:08 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-02-22 21:28:39 +00:00
|
|
|
pytest-sugar
|
|
|
|
pytest-timeout
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "mysensors" ];
|
2021-02-22 21:28:39 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python API for talking to a MySensors gateway";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "pymysensors";
|
2021-02-22 21:28:39 +00:00
|
|
|
homepage = "https://github.com/theolind/pymysensors";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|