Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566{ lib, aiohttp, aresponses, buildPythonPackage, fetchFromGitHub, poetry-core, pyprojectVersionPatchHook, pytest-asyncio, pytest-cov-stub, pytestCheckHook, syrupy, yarl,}:
buildPythonPackage rec { pname = "aiowaqi"; version = "3.1.0"; pyproject = true;
src = fetchFromGitHub { owner = "joostlek"; repo = "python-waqi"; tag = "v${version}"; hash = "sha256-YWTGEOSSkZ0XbZUE3k+Dn9qg8Pmwip9wCp8e/j1D9io="; };
build-system = [ poetry-core ];
nativeBuildInputs = [ pyprojectVersionPatchHook ];
dependencies = [ aiohttp yarl ];
nativeCheckInputs = [ aresponses pytest-asyncio pytest-cov-stub pytestCheckHook syrupy ];
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [ "aiowaqi" ];
disabledTests = [ # Upstream mocking fails "test_search" ];
pytestFlags = [ "--snapshot-update" ];
meta = { description = "Module to interact with the WAQI API"; homepage = "https://github.com/joostlek/python-waqi"; changelog = "https://github.com/joostlek/python-waqi/releases/tag/v${version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; };}