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