1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-29 12:35:10 +03:00
nixpkgs/pkgs/development/python-modules/roonapi/default.nix

51 lines
879 B
Nix
Raw Normal View History

2021-05-28 00:02:55 +02:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, ifaddr
, poetry-core
, pythonOlder
, requests
, six
, websocket-client
2021-05-28 00:02:55 +02:00
}:
buildPythonPackage rec {
pname = "roonapi";
version = "0.1.1";
2021-05-28 00:02:55 +02:00
format = "pyproject";
2021-05-28 00:02:55 +02:00
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "pavoni";
repo = "pyroon";
2021-05-28 00:02:55 +02:00
rev = version;
sha256 = "sha256-GEgm250uALTXIEMBWmluqGw/dw2TfGmUIcItfzonGkU=";
2021-05-28 00:02:55 +02:00
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
ifaddr
requests
six
websocket-client
2021-05-28 00:02:55 +02:00
];
# Tests require access to the Roon API
doCheck = false;
pythonImportsCheck = [
"roonapi"
];
2021-05-28 00:02:55 +02: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 ];
};
}