depot/third_party/nixpkgs/pkgs/development/python-modules/roonapi/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

48 lines
952 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
ifaddr,
poetry-core,
pythonOlder,
requests,
six,
websocket-client,
}:
buildPythonPackage rec {
pname = "roonapi";
version = "0.1.6";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "pavoni";
repo = "pyroon";
rev = version;
hash = "sha256-6wQsaZ50J2xIPXzICglg5pf8U0r4tL8iqcbdwjZadwU=";
};
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 ];
};
}