6d4aeb4377
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
51 lines
953 B
Nix
51 lines
953 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, ifaddr
|
|
, poetry-core
|
|
, pythonOlder
|
|
, requests
|
|
, six
|
|
, websocket-client
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "roonapi";
|
|
version = "0.1.3";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pavoni";
|
|
repo = "pyroon";
|
|
rev = version;
|
|
hash = "sha256-QOFBNTz8g3f6C8Vjkblrd3QFCRrA1WqOCv6xS4GbFC4=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
ifaddr
|
|
requests
|
|
six
|
|
websocket-client
|
|
];
|
|
|
|
# Tests require access to the Roon API
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"roonapi"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python library to interface with the Roon API";
|
|
homepage = "https://github.com/pavoni/pyroon";
|
|
changelog = "https://github.com/pavoni/pyroon/releases/tag/${version}";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|