2021-05-27 23:02:55 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, ifaddr
|
|
|
|
, poetry-core
|
|
|
|
, pythonOlder
|
|
|
|
, requests
|
|
|
|
, six
|
2021-06-15 12:12:45 +01:00
|
|
|
, websocket-client
|
2021-05-27 23:02:55 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-06-02 23:46:13 +01:00
|
|
|
pname = "roonapi";
|
2021-08-04 21:10:08 +01:00
|
|
|
version = "0.0.38";
|
2021-05-27 23:02:55 +01:00
|
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pavoni";
|
2021-06-02 23:46:13 +01:00
|
|
|
repo = "pyroon";
|
2021-05-27 23:02:55 +01:00
|
|
|
rev = version;
|
2021-08-04 21:10:08 +01:00
|
|
|
sha256 = "sha256-vXx7MgoGjBPdx7uKUtAVqlXphPJYt5SyuTo2JlKia60=";
|
2021-05-27 23:02:55 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
ifaddr
|
|
|
|
requests
|
|
|
|
six
|
2021-06-15 12:12:45 +01:00
|
|
|
websocket-client
|
2021-05-27 23:02:55 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
# 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";
|
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|