2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2023-02-02 18:25:31 +00:00
|
|
|
, pytestCheckHook
|
2021-06-28 23:13:55 +00:00
|
|
|
, python-dateutil
|
|
|
|
, python-slugify
|
2022-03-05 16:20:37 +00:00
|
|
|
, pythonAtLeast
|
|
|
|
, pythonOlder
|
2023-02-02 18:25:31 +00:00
|
|
|
, requests
|
|
|
|
, sortedcontainers
|
2021-06-28 23:13:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "blinkpy";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "0.20.0";
|
2022-03-05 16:20:37 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fronzbot";
|
|
|
|
repo = "blinkpy";
|
2022-07-14 12:49:19 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-02-02 18:25:31 +00:00
|
|
|
hash = "sha256-6la8rCmMtH2N4/P5OVGht1wgSuiW16MmF5a422LADV4=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
python-dateutil
|
|
|
|
python-slugify
|
|
|
|
requests
|
2023-02-02 18:25:31 +00:00
|
|
|
sortedcontainers
|
2021-06-28 23:13:55 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
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";
|
2023-02-02 18:25:31 +00:00
|
|
|
changelog = "https://github.com/fronzbot/blinkpy/releases/tag/v${version}";
|
2021-06-28 23:13:55 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|