2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
ifaddr,
|
|
|
|
poetry-core,
|
|
|
|
pythonOlder,
|
|
|
|
requests,
|
|
|
|
six,
|
|
|
|
websocket-client,
|
2021-05-29 03:34:57 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-06-28 23:13:55 +00:00
|
|
|
pname = "roonapi";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "0.1.6";
|
2021-05-29 03:34:57 +00:00
|
|
|
format = "pyproject";
|
2022-02-20 05:27:41 +00:00
|
|
|
|
2021-05-29 03:34:57 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pavoni";
|
2021-06-28 23:13:55 +00:00
|
|
|
repo = "pyroon";
|
2021-05-29 03:34:57 +00:00
|
|
|
rev = version;
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-6wQsaZ50J2xIPXzICglg5pf8U0r4tL8iqcbdwjZadwU=";
|
2021-05-29 03:34:57 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ poetry-core ];
|
2021-05-29 03:34:57 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
ifaddr
|
|
|
|
requests
|
|
|
|
six
|
2021-06-28 23:13:55 +00:00
|
|
|
websocket-client
|
2021-05-29 03:34:57 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Tests require access to the Roon API
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "roonapi" ];
|
2021-05-29 03:34:57 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library to interface with the Roon API";
|
|
|
|
homepage = "https://github.com/pavoni/pyroon";
|
2023-01-11 07:51:40 +00:00
|
|
|
changelog = "https://github.com/pavoni/pyroon/releases/tag/${version}";
|
2021-05-29 03:34:57 +00:00
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|