2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python-dateutil
|
|
|
|
, python-slugify
|
|
|
|
, requests
|
|
|
|
, pytestCheckHook
|
2022-03-05 16:20:37 +00:00
|
|
|
, pythonAtLeast
|
|
|
|
, pythonOlder
|
2021-06-28 23:13:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "blinkpy";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "0.19.0";
|
2022-03-05 16:20:37 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fronzbot";
|
|
|
|
repo = "blinkpy";
|
|
|
|
rev = "v${version}";
|
2022-03-30 09:31:56 +00:00
|
|
|
hash = "sha256-niUGfktP1zVdrRCDy81ou4yAoscnYveHje9423IKcso=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
python-dateutil
|
|
|
|
python-slugify
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"blinkpy"
|
|
|
|
"blinkpy.api"
|
|
|
|
"blinkpy.auth"
|
|
|
|
"blinkpy.blinkpy"
|
|
|
|
"blinkpy.camera"
|
|
|
|
"blinkpy.helpers.util"
|
|
|
|
"blinkpy.sync_module"
|
|
|
|
];
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
disabledTests = lib.optionals (pythonAtLeast "3.10") [
|
|
|
|
"test_download_video_exit"
|
|
|
|
"test_parse_camera_not_in_list"
|
|
|
|
"test_parse_downloaded_items"
|
|
|
|
];
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library for the Blink Camera system";
|
|
|
|
homepage = "https://github.com/fronzbot/blinkpy";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|