about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/abodepy/default.nix
blob: 47fc6148ed24f78ea3fe7f8809e5f998ae4cb900 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, colorlog, lomond
, requests, isPy3k, requests-mock }:

buildPythonPackage rec {
  pname = "abodepy";
  version = "1.2.2";

  disabled = !isPy3k;

  src = fetchFromGitHub {
    owner = "MisterWil";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-GrvNCgWGGBbUUONwS18csh4/A0MMkSk5Z6LlDhlQqok=";
  };

  propagatedBuildInputs = [ colorlog lomond requests ];
  checkInputs = [ pytestCheckHook requests-mock ];

  meta = with lib; {
    homepage = "https://github.com/MisterWil/abodepy";
    description = "An Abode alarm Python library running on Python 3";
    license = licenses.mit;
    maintainers = with maintainers; [ jamiemagee ];
  };
}