1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytest-asyncio
5, pytest-cov
6, pytestCheckHook
7, pythonOlder
8, pyyaml
9, requests
10, requests-mock
11}:
12
13buildPythonPackage rec {
14 pname = "hydrawiser";
15 version = "0.2";
16 disabled = pythonOlder "3.6";
17
18 src = fetchFromGitHub {
19 owner = "ptcryan";
20 repo = pname;
21 rev = "v${version}";
22 sha256 = "161hazlpvd71xcl2ja86560wm5lnrjv210ki3ji37l6c6gwmhjdj";
23 };
24
25 propagatedBuildInputs = [ requests ];
26
27 checkInputs = [
28 pytest-asyncio
29 pytest-cov
30 pytestCheckHook
31 requests
32 requests-mock
33 ];
34
35 pythonImportsCheck = [ "hydrawiser" ];
36
37 meta = with lib; {
38 description = "Python library for Hydrawise API";
39 homepage = "https://github.com/ptcryan/hydrawiser";
40 license = with licenses; [ mit ];
41 maintainers = with maintainers; [ fab ];
42 };
43}