Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / skybellpy / default.nix
blobc94b03bcc6675dc18dab3528080d105658c80dbe
1 { lib
2 , buildPythonPackage
3 , colorlog
4 , fetchFromGitHub
5 , pytest-sugar
6 , pytest-timeout
7 , pytestCheckHook
8 , pythonOlder
9 , requests
10 , requests-mock
13 buildPythonPackage rec {
14   pname = "skybellpy";
15   version = "0.6.3";
16   disabled = pythonOlder "3.6";
18   src = fetchFromGitHub {
19     owner = "MisterWil";
20     repo = pname;
21     rev = "v${version}";
22     sha256 = "1ghvm0pcdyhq6xfjc2dkldd701x77w07077sx09xsk6q2milmvzz";
23   };
25   propagatedBuildInputs = [
26     colorlog
27     requests
28   ];
30   checkInputs = [
31     pytest-sugar
32     pytest-timeout
33     pytestCheckHook
34     requests-mock
35   ];
37   pythonImportsCheck = [ "skybellpy" ];
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   };