Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 aiohttp, 4 aresponses, 5 buildPythonPackage, 6 fetchFromGitHub, 7 poetry-core, 8 pytest-asyncio, 9 pytestCheckHook, 10 pythonOlder, 11 syrupy, 12 yarl, 13}: 14 15buildPythonPackage rec { 16 pname = "aiowaqi"; 17 version = "3.1.0"; 18 pyproject = true; 19 20 disabled = pythonOlder "3.11"; 21 22 src = fetchFromGitHub { 23 owner = "joostlek"; 24 repo = "python-waqi"; 25 rev = "refs/tags/v${version}"; 26 hash = "sha256-YWTGEOSSkZ0XbZUE3k+Dn9qg8Pmwip9wCp8e/j1D9io="; 27 }; 28 29 postPatch = '' 30 substituteInPlace pyproject.toml \ 31 --replace-fail "--cov" "" 32 ''; 33 34 build-system = [ poetry-core ]; 35 36 dependencies = [ 37 aiohttp 38 yarl 39 ]; 40 41 nativeCheckInputs = [ 42 aresponses 43 pytest-asyncio 44 pytestCheckHook 45 syrupy 46 ]; 47 48 pythonImportsCheck = [ "aiowaqi" ]; 49 50 disabledTests = [ 51 # Upstream mocking fails 52 "test_search" 53 ]; 54 55 pytestFlagsArray = [ "--snapshot-update" ]; 56 57 meta = with lib; { 58 description = "Module to interact with the WAQI API"; 59 homepage = "https://github.com/joostlek/python-waqi"; 60 changelog = "https://github.com/joostlek/python-waqi/releases/tag/v${version}"; 61 license = licenses.mit; 62 maintainers = with maintainers; [ fab ]; 63 }; 64}