Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at lanzaboote 63 lines 1.2 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, aiofiles 5, aiohttp 6, pytestCheckHook 7, python-dateutil 8, python-slugify 9, pythonOlder 10, requests 11, setuptools 12, sortedcontainers 13}: 14 15buildPythonPackage rec { 16 pname = "blinkpy"; 17 version = "0.22.0"; 18 pyproject = true; 19 20 disabled = pythonOlder "3.8"; 21 22 src = fetchFromGitHub { 23 owner = "fronzbot"; 24 repo = "blinkpy"; 25 rev = "refs/tags/v${version}"; 26 hash = "sha256-r8kf5L6bvtivqd9dSi8om1wIi8IHmipKFckNMPT515I="; 27 }; 28 29 nativeBuildInputs = [ 30 setuptools 31 ]; 32 33 propagatedBuildInputs = [ 34 aiofiles 35 aiohttp 36 python-dateutil 37 python-slugify 38 requests 39 sortedcontainers 40 ]; 41 42 nativeCheckInputs = [ 43 pytestCheckHook 44 ]; 45 46 pythonImportsCheck = [ 47 "blinkpy" 48 "blinkpy.api" 49 "blinkpy.auth" 50 "blinkpy.blinkpy" 51 "blinkpy.camera" 52 "blinkpy.helpers.util" 53 "blinkpy.sync_module" 54 ]; 55 56 meta = with lib; { 57 description = "Python library for the Blink Camera system"; 58 homepage = "https://github.com/fronzbot/blinkpy"; 59 changelog = "https://github.com/fronzbot/blinkpy/blob/${src.rev}/CHANGES.rst"; 60 license = licenses.mit; 61 maintainers = with maintainers; [ dotlambda ]; 62 }; 63}