1{ lib 2, aiohttp 3, aresponses 4, asynctest 5, buildPythonPackage 6, fetchFromGitHub 7, numpy 8, poetry-core 9, pysmb 10, pytest-aiohttp 11, pytest-asyncio 12, pytestCheckHook 13, pythonOlder 14}: 15 16buildPythonPackage rec { 17 pname = "pyairvisual"; 18 version = "2022.11.1"; 19 format = "pyproject"; 20 21 disabled = pythonOlder "3.7"; 22 23 src = fetchFromGitHub { 24 owner = "bachya"; 25 repo = pname; 26 rev = version; 27 sha256 = "sha256-5o3iJEcpxiHvjEi6VZj39SelBtfeneg349hvFwJ2oQU="; 28 }; 29 30 nativeBuildInputs = [ 31 poetry-core 32 ]; 33 34 propagatedBuildInputs = [ 35 aiohttp 36 numpy 37 pysmb 38 ]; 39 40 checkInputs = [ 41 aresponses 42 asynctest 43 pytest-aiohttp 44 pytest-asyncio 45 pytestCheckHook 46 ]; 47 48 disabledTestPaths = [ 49 # Ignore the examples directory as the files are prefixed with test_. 50 "examples/" 51 ]; 52 53 pythonImportsCheck = [ 54 "pyairvisual" 55 ]; 56 57 meta = with lib; { 58 description = "Python library for interacting with AirVisual"; 59 homepage = "https://github.com/bachya/pyairvisual"; 60 changelog = "https://github.com/bachya/pyairvisual/releases/tag/${version}"; 61 license = with licenses; [ mit ]; 62 maintainers = with maintainers; [ fab ]; 63 }; 64}