1{ lib
2, buildPythonPackage
3, colorlog
4, fetchFromGitHub
5, pytest-sugar
6, pytest-timeout
7, pytestCheckHook
8, pythonOlder
9, requests
10, requests-mock
11}:
12
13buildPythonPackage rec {
14 pname = "skybellpy";
15 version = "0.6.3";
16 disabled = pythonOlder "3.6";
17
18 src = fetchFromGitHub {
19 owner = "MisterWil";
20 repo = pname;
21 rev = "v${version}";
22 sha256 = "1ghvm0pcdyhq6xfjc2dkldd701x77w07077sx09xsk6q2milmvzz";
23 };
24
25 propagatedBuildInputs = [
26 colorlog
27 requests
28 ];
29
30 nativeCheckInputs = [
31 pytest-sugar
32 pytest-timeout
33 pytestCheckHook
34 requests-mock
35 ];
36
37 pythonImportsCheck = [ "skybellpy" ];
38
39 meta = with lib; {
40 description = "Python wrapper for the Skybell alarm API";
41 homepage = "https://github.com/MisterWil/skybellpy";
42 license = with licenses; [ mit ];
43 maintainers = with maintainers; [ fab ];
44 };
45}