1{
2 lib,
3 authlib,
4 bleak,
5 buildPythonPackage,
6 fetchFromGitHub,
7 httpx,
8 pythonOlder,
9 setuptools,
10 websockets,
11}:
12
13buildPythonPackage rec {
14 pname = "lmcloud";
15 version = "1.1.10";
16 pyproject = true;
17
18 disabled = pythonOlder "3.11";
19
20 src = fetchFromGitHub {
21 owner = "zweckj";
22 repo = "lmcloud";
23 rev = "refs/tags/v${version}";
24 hash = "sha256-oPUZ5EAvFhzMfAK5rbiy8O10FTSseWj7JHCZvZ/7PG4=";
25 };
26
27 build-system = [ setuptools ];
28
29 dependencies = [
30 authlib
31 bleak
32 httpx
33 websockets
34 ];
35
36 # Module has no tests
37 doCheck = false;
38
39 pythonImportsCheck = [ "lmcloud" ];
40
41 meta = with lib; {
42 description = "Library to interface with La Marzocco's cloud";
43 homepage = "https://github.com/zweckj/lmcloud";
44 changelog = "https://github.com/zweckj/lmcloud/releases/tag/v${version}";
45 license = licenses.mit;
46 maintainers = with maintainers; [ fab ];
47 };
48}