1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 httpx,
7 pyjwt,
8 websockets,
9 yarl,
10}:
11
12buildPythonPackage rec {
13 pname = "elmax-api";
14 version = "0.0.6.4rc0";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "albertogeniola";
19 repo = "elmax-api";
20 tag = "v${version}";
21 hash = "sha256-BYVfP8B+p4J4gW+64xh9bT9sDcu/lk0R+MvLsYLwRfQ=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [
27 httpx
28 pyjwt
29 websockets
30 yarl
31 ];
32
33 # Test require network access
34 doCheck = false;
35
36 pythonImportsCheck = [ "elmax_api" ];
37
38 meta = with lib; {
39 description = "Python library for interacting with the Elmax cloud";
40 homepage = "https://github.com/albertogeniola/elmax-api";
41 changelog = "https://github.com/albertogeniola/elmax-api/releases/tag/v${version}";
42 license = with licenses; [ asl20 ];
43 maintainers = with maintainers; [ fab ];
44 };
45}