2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiofiles,
|
|
|
|
asyncio-mqtt,
|
|
|
|
awesomeversion,
|
|
|
|
buildPythonPackage,
|
|
|
|
click,
|
|
|
|
fetchFromGitHub,
|
|
|
|
marshmallow,
|
|
|
|
poetry-core,
|
|
|
|
pyserial-asyncio,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2022-08-12 12:06:08 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiomysensors";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.3.15";
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MartinHjelmare";
|
2024-01-13 08:15:51 +00:00
|
|
|
repo = "aiomysensors";
|
2023-01-20 10:41:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-kgfz8VUTtOFN1hPkNJhPdRUKQn01BJn+92Ez6lgVGbc=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
2024-02-29 20:09:43 +00:00
|
|
|
--replace-fail " --cov=src --cov-report=term-missing:skip-covered" ""
|
2023-08-04 22:07:22 +00:00
|
|
|
'';
|
2024-01-13 08:15:51 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [ poetry-core ];
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [
|
2022-08-12 12:06:08 +00:00
|
|
|
aiofiles
|
|
|
|
asyncio-mqtt
|
|
|
|
awesomeversion
|
|
|
|
click
|
|
|
|
marshmallow
|
|
|
|
pyserial-asyncio
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-08-12 12:06:08 +00:00
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
pythonImportsCheck = [ "aiomysensors" ];
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Library to connect to MySensors gateways";
|
|
|
|
homepage = "https://github.com/MartinHjelmare/aiomysensors";
|
2023-03-30 22:05:00 +00:00
|
|
|
changelog = "https://github.com/MartinHjelmare/aiomysensors/releases/tag/v${version}";
|
2022-08-12 12:06:08 +00:00
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2024-05-15 15:35:15 +00:00
|
|
|
mainProgram = "aiomysensors";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
}
|