depot/third_party/nixpkgs/pkgs/development/python-modules/roonapi/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

51 lines
953 B
Nix

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