Something went wrong. Try again.
lol
Something went wrong. Try again.
1.0 kB · 49 lines
Nix
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950{ lib, buildPythonPackage, fetchPypi, aiohttp, async-timeout, aioresponses, pytestCheckHook, setuptools,}:
buildPythonPackage rec { pname = "foobot-async"; version = "1.0.1"; pyproject = true;
src = fetchPypi { pname = "foobot_async"; inherit version; hash = "sha256-QQjysk2m8QkOpLBdC8kfuoA9PcljgEwzKyrIAhxHB4c="; };
postPatch = '' # https://github.com/reefab/foobot_async/issues/7 substituteInPlace foobot_async/__init__.py \ --replace-fail "with async_timeout.timeout" "async with async_timeout.timeout" '';
build-system = [ setuptools ];
dependencies = [ aiohttp async-timeout ];
nativeCheckInputs = [ aioresponses pytestCheckHook ];
pythonImportsCheck = [ "foobot_async" ];
meta = { description = "API Client for Foobot Air Quality Monitoring devices"; homepage = "https://github.com/reefab/foobot_async"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ dotlambda ]; };}