2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
2024-04-21 15:54:59 +00:00
|
|
|
, aiohttp
|
2023-07-15 17:15:38 +00:00
|
|
|
, async-timeout
|
2022-04-27 09:35:20 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2023-07-15 17:15:38 +00:00
|
|
|
, pillow
|
2022-04-27 09:35:20 +00:00
|
|
|
, pythonOlder
|
2023-07-15 17:15:38 +00:00
|
|
|
, setuptools
|
2022-04-27 09:35:20 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aioslimproto";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "3.0.1";
|
|
|
|
pyproject = true;
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
disabled = pythonOlder "3.10";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "home-assistant-libs";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "aioslimproto";
|
2022-07-14 12:49:19 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-K7z34fT0PQ5qcV+66VbhYTUhCjqW/OjPnrygBFKIW1k=";
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace-fail "--cov" ""
|
|
|
|
'';
|
2023-08-22 20:05:09 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2024-04-21 15:54:59 +00:00
|
|
|
aiohttp
|
2023-07-15 17:15:38 +00:00
|
|
|
async-timeout
|
|
|
|
pillow
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
# Module has no tests
|
|
|
|
doCheck = false;
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"aioslimproto"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Module to control Squeezebox players";
|
|
|
|
homepage = "https://github.com/home-assistant-libs/aioslimproto";
|
2023-03-15 16:39:30 +00:00
|
|
|
changelog = "https://github.com/home-assistant-libs/aioslimproto/releases/tag/${version}";
|
2022-04-27 09:35:20 +00:00
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|