1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, python-dateutil
5, python-slugify
6, requests
7, pytestCheckHook
8}:
9
10buildPythonPackage rec {
11 pname = "blinkpy";
12 version = "0.17.1";
13
14 src = fetchFromGitHub {
15 owner = "fronzbot";
16 repo = "blinkpy";
17 rev = "v${version}";
18 sha256 = "11h4r2vkrlxwjig1lay1n5wpny5isfgz85f7lsn8ndnqa2wpsymp";
19 };
20
21 propagatedBuildInputs = [
22 python-dateutil
23 python-slugify
24 requests
25 ];
26
27 checkInputs = [
28 pytestCheckHook
29 ];
30
31 pythonImportsCheck = [
32 "blinkpy"
33 "blinkpy.api"
34 "blinkpy.auth"
35 "blinkpy.blinkpy"
36 "blinkpy.camera"
37 "blinkpy.helpers.util"
38 "blinkpy.sync_module"
39 ];
40
41 meta = with lib; {
42 description = "Python library for the Blink Camera system";
43 homepage = "https://github.com/fronzbot/blinkpy";
44 license = licenses.mit;
45 maintainers = with maintainers; [ dotlambda ];
46 };
47}