python3Packages.blinkpy: disable failing tests on Python 3.10

This commit is contained in:
Fabian Affolter 2022-03-03 10:54:24 +01:00
parent ef8c2381d7
commit 9c88964863

View file

@ -5,11 +5,16 @@
, python-slugify , python-slugify
, requests , requests
, pytestCheckHook , pytestCheckHook
, pythonAtLeast
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "blinkpy"; pname = "blinkpy";
version = "0.18.0"; version = "0.18.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "fronzbot"; owner = "fronzbot";
@ -38,6 +43,12 @@ buildPythonPackage rec {
"blinkpy.sync_module" "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; { meta = with lib; {
description = "Python library for the Blink Camera system"; description = "Python library for the Blink Camera system";
homepage = "https://github.com/fronzbot/blinkpy"; homepage = "https://github.com/fronzbot/blinkpy";