My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/blinkpy/default.nix

58 lines
1.1 KiB

{ lib
, buildPythonPackage
, fetchFromGitHub
, python-dateutil
, python-slugify
, requests
, pytestCheckHook
, pythonAtLeast
, pythonOlder
}:
buildPythonPackage rec {
pname = "blinkpy";
version = "0.19.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "fronzbot";
repo = "blinkpy";
rev = "refs/tags/v${version}";
hash = "sha256-29wfdRbJ4U3ou/4jkpWBE2FrUuo09k4hTYLnIP1S3uU=";
};
propagatedBuildInputs = [
python-dateutil
python-slugify
requests
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"blinkpy"
"blinkpy.api"
"blinkpy.auth"
"blinkpy.blinkpy"
"blinkpy.camera"
"blinkpy.helpers.util"
"blinkpy.sync_module"
];
disabledTests = lib.optionals (pythonAtLeast "3.10") [
"test_download_video_exit"
"test_parse_camera_not_in_list"
"test_parse_downloaded_items"
];
meta = with lib; {
description = "Python library for the Blink Camera system";
homepage = "https://github.com/fronzbot/blinkpy";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}