depot/third_party/nixpkgs/pkgs/development/python-modules/blinkpy/default.nix

62 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, python-dateutil
, python-slugify
, pythonAtLeast
, pythonOlder
, requests
, sortedcontainers
}:
buildPythonPackage rec {
pname = "blinkpy";
version = "0.20.0";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "fronzbot";
repo = "blinkpy";
rev = "refs/tags/v${version}";
hash = "sha256-6la8rCmMtH2N4/P5OVGht1wgSuiW16MmF5a422LADV4=";
};
propagatedBuildInputs = [
python-dateutil
python-slugify
requests
sortedcontainers
];
nativeCheckInputs = [
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";
changelog = "https://github.com/fronzbot/blinkpy/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}