1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pytz,
7 requests,
8 paho-mqtt,
9}:
10
11buildPythonPackage rec {
12 pname = "yoto-api";
13 version = "1.26.5";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "cdnninja";
18 repo = "yoto_api";
19 tag = "v${version}";
20 hash = "sha256-QlcZZjyMPIPGG5zHTFM9E2Y8sa/etbvMmxRp15NzKEo=";
21 };
22
23 build-system = [ setuptools ];
24
25 dependencies = [
26 pytz
27 requests
28 paho-mqtt
29 ];
30
31 # All tests require access to and authentication with the Yoto API (api.yotoplay.com).
32 doCheck = false;
33
34 pythonImportsCheck = [ "yoto_api" ];
35
36 meta = with lib; {
37 changelog = "https://github.com/cdnninja/yoto_api/releases/tag/${src.tag}";
38 homepage = "https://github.com/cdnninja/yoto_api";
39 platforms = platforms.unix;
40 maintainers = with maintainers; [ seberm ];
41 license = licenses.mit;
42 description = "Python package that makes it a bit easier to work with the yoto play API";
43 };
44}