1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, httpx
5, pyjwt
6, pythonOlder
7, yarl
8}:
9
10buildPythonPackage rec {
11 pname = "elmax-api";
12 version = "0.0.5";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.8";
16
17 src = fetchFromGitHub {
18 owner = "albertogeniola";
19 repo = pname;
20 rev = "refs/tags/v${version}";
21 hash = "sha256-57pmmH7f893H71CMhdnahvbN/5F2yfrVZ6MFpYQ4+mQ=";
22 };
23
24 propagatedBuildInputs = [
25 httpx
26 pyjwt
27 yarl
28 ];
29
30 # Test require network access
31 doCheck = false;
32
33 pythonImportsCheck = [
34 "elmax_api"
35 ];
36
37 meta = with lib; {
38 description = "Python library for interacting with the Elmax cloud";
39 homepage = "https://github.com/albertogeniola/elmax-api";
40 changelog = "https://github.com/albertogeniola/elmax-api/releases/tag/v${version}";
41 license = with licenses; [ asl20 ];
42 maintainers = with maintainers; [ fab ];
43 };
44}