diff --git a/pkgs/development/python-modules/yoto-api/default.nix b/pkgs/development/python-modules/yoto-api/default.nix new file mode 100644 index 00000000000000..778c141acb9a2b --- /dev/null +++ b/pkgs/development/python-modules/yoto-api/default.nix @@ -0,0 +1,35 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytz, + requests, + paho-mqtt, +}: + +buildPythonPackage rec { + pname = "yoto-api"; + version = "1.24.2"; + format = "setuptools"; + + src = fetchFromGitHub { + owner = "cdnninja"; + repo = "yoto_api"; + rev = "refs/tags/v${version}"; + hash = "sha256-wbqeRTYHDpxKqOwTRkkYGtgYOmnyNQY50dnvI0WprwA="; + }; + + propagatedBuildInputs = [ + pytz + requests + paho-mqtt + ]; + + meta = with lib; { + homepage = "https://github.com/cdnninja/yoto_api"; + platforms = platforms.unix; + maintainers = with maintainers; [ seberm ]; + license = licenses.mit; + description = "A python package that makes it a bit easier to work with the yoto play API."; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1056a924484eca..13ad2aa0309a72 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -18303,6 +18303,8 @@ self: super: with self; { python3 = python; }); + yoto-api = callPackage ../development/python-modules/yoto-api { }; + youless-api = callPackage ../development/python-modules/youless-api { }; youseedee = callPackage ../development/python-modules/youseedee { };