depot/third_party/nixpkgs/pkgs/development/python-modules/blinkpy/default.nix
Default email 8a45d4525b Project import generated by Copybara.
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
2022-03-30 11:31:56 +02:00

58 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, python-dateutil
, python-slugify
, requests
, pytestCheckHook
, pythonAtLeast
, pythonOlder
}:
buildPythonPackage rec {
pname = "blinkpy";
version = "0.19.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "fronzbot";
repo = "blinkpy";
rev = "v${version}";
hash = "sha256-niUGfktP1zVdrRCDy81ou4yAoscnYveHje9423IKcso=";
};
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 ];
};
}