Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, aiofiles 3, aiohttp 4, aresponses 5, buildPythonPackage 6, fetchFromGitHub 7, pytest-asyncio 8, pytestCheckHook 9, pythonOlder 10}: 11 12buildPythonPackage rec { 13 pname = "aioskybell"; 14 version = "22.7.0"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.9"; 18 19 src = fetchFromGitHub { 20 owner = "tkdrob"; 21 repo = pname; 22 rev = "refs/tags/${version}"; 23 hash = "sha256-aBT1fDFtq1vasTvCnAXKV2vmZ6LBLZqRCiepv1HDJ+Q="; 24 }; 25 26 postPatch = '' 27 substituteInPlace setup.py \ 28 --replace 'version="master",' 'version="${version}",' 29 ''; 30 31 propagatedBuildInputs = [ 32 aiohttp 33 aiofiles 34 ]; 35 36 nativeCheckInputs = [ 37 aresponses 38 pytest-asyncio 39 pytestCheckHook 40 ]; 41 42 pythonImportsCheck = [ 43 "aioskybell" 44 ]; 45 46 meta = with lib; { 47 description = "API client for Skybell doorbells"; 48 homepage = "https://github.com/tkdrob/aioskybell"; 49 license = with licenses; [ mit ]; 50 maintainers = with maintainers; [ fab ]; 51 }; 52}