Files
nixpkgs/pkgs/development/python-modules/sonos-websocket/default.nix

40 lines
835 B
Nix

{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
setuptools,
}:
buildPythonPackage rec {
pname = "sonos-websocket";
version = "0.1.3";
pyproject = true;
src = fetchFromGitHub {
owner = "jjlawren";
repo = "sonos-websocket";
tag = version;
hash = "sha256-1sgYLwIW7VWnHJGsfIQ95AGZ5j/DPMKQr5n7F+/MsuY=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [ "sonos_websocket" ];
meta = {
description = "Library to communicate with Sonos devices over websockets";
homepage = "https://github.com/jjlawren/sonos-websocket";
changelog = "https://github.com/jjlawren/sonos-websocket/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}