2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
aioresponses,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
incremental,
|
|
|
|
pythonOlder,
|
2024-09-19 14:19:46 +00:00
|
|
|
pytest-asyncio,
|
2024-05-15 15:35:15 +00:00
|
|
|
pytestCheckHook,
|
|
|
|
setuptools,
|
2021-03-09 03:18:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiolyric";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "2.0.1";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2022-03-05 16:20:37 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
disabled = pythonOlder "3.11";
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "timmo001";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "aiolyric";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-pN/F4Rdov06sm1yfJQEzmWyujWVeVU+bNGGkgnN4jYw=";
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace requirements_setup.txt \
|
|
|
|
--replace-fail "==" ">="
|
|
|
|
'';
|
|
|
|
|
|
|
|
build-system = [
|
|
|
|
incremental
|
|
|
|
setuptools
|
|
|
|
];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
dependencies = [
|
2022-03-05 16:20:37 +00:00
|
|
|
aiohttp
|
2024-05-15 15:35:15 +00:00
|
|
|
incremental
|
2022-03-05 16:20:37 +00:00
|
|
|
];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2024-05-15 15:35:15 +00:00
|
|
|
aioresponses
|
2024-09-19 14:19:46 +00:00
|
|
|
pytest-asyncio
|
2022-03-05 16:20:37 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
pythonImportsCheck = [ "aiolyric" ];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module for the Honeywell Lyric Platform";
|
|
|
|
homepage = "https://github.com/timmo001/aiolyric";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/timmo001/aiolyric/releases/tag/v${version}";
|
2021-03-09 03:18:52 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|