Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 52 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253{ lib, buildPythonPackage, pythonOlder, fetchPypi, aiohttp, async-timeout, aioresponses, pytestCheckHook, setuptools,}:
buildPythonPackage rec { pname = "foobot-async"; version = "1.0.1"; pyproject = true;
disabled = pythonOlder "3.8";
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 = with lib; { description = "API Client for Foobot Air Quality Monitoring devices"; homepage = "https://github.com/reefab/foobot_async"; license = licenses.mit; maintainers = with maintainers; [ dotlambda ]; };}