2021-07-03 03:11:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
|
|
|
, poetry-core
|
|
|
|
, aiohttp
|
|
|
|
, async-upnp-client
|
|
|
|
, attrs
|
|
|
|
, click
|
|
|
|
, importlib-metadata
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-songpal";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.16";
|
2021-07-03 03:11:41 +00:00
|
|
|
|
|
|
|
format = "pyproject";
|
|
|
|
|
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}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-wHyq63RG0lhzG33ssWyvzLjc7s1OqquXMN26N2MBHU8=";
|
2021-07-03 03:11:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
async-upnp-client
|
|
|
|
attrs
|
|
|
|
click
|
|
|
|
importlib-metadata
|
|
|
|
];
|
|
|
|
|
|
|
|
# no tests implemented
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "songpal" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library for interfacing with Sony's Songpal devices";
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|