2021-05-29 03:34:57 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, ifaddr
|
|
|
|
, poetry-core
|
|
|
|
, pythonOlder
|
|
|
|
, requests
|
|
|
|
, six
|
2021-06-28 23:13:55 +00:00
|
|
|
, websocket-client
|
2021-05-29 03:34:57 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-06-28 23:13:55 +00:00
|
|
|
pname = "roonapi";
|
2022-02-20 05:27:41 +00:00
|
|
|
version = "0.1.1";
|
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;
|
2022-02-20 05:27:41 +00:00
|
|
|
sha256 = "sha256-GEgm250uALTXIEMBWmluqGw/dw2TfGmUIcItfzonGkU=";
|
2021-05-29 03:34:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
2022-02-20 05:27:41 +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";
|
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|