2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchFromGitHub,
|
|
|
|
poetry-core,
|
|
|
|
aiohttp,
|
|
|
|
async-upnp-client,
|
|
|
|
attrs,
|
|
|
|
click,
|
2021-07-03 03:11:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-songpal";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.16.2";
|
|
|
|
pyproject = true;
|
2021-07-03 03:11:41 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2021-07-03 03:11:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rytilahti";
|
|
|
|
repo = "python-songpal";
|
2022-09-14 18:05:37 +00:00
|
|
|
rev = "refs/tags/release/${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-PYw6xlUtBrxl+YeVO/2Njt5LYWEprzGPVNk1Mlr83HM=";
|
2021-07-03 03:11:41 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ poetry-core ];
|
2021-07-03 03:11:41 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2021-07-03 03:11:41 +00:00
|
|
|
aiohttp
|
|
|
|
async-upnp-client
|
|
|
|
attrs
|
|
|
|
click
|
|
|
|
];
|
|
|
|
|
|
|
|
# no tests implemented
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "songpal" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library for interfacing with Sony's Songpal devices";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "songpal";
|
2021-07-03 03:11:41 +00:00
|
|
|
homepage = "https://github.com/rytilahti/python-songpal";
|
2023-03-24 00:07:29 +00:00
|
|
|
changelog = "https://github.com/rytilahti/python-songpal/blob/release/${version}/CHANGELOG.md";
|
2021-07-03 03:11:41 +00:00
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|