nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 49 lines 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 aiohttp, 6 async-timeout, 7 aioresponses, 8 pytestCheckHook, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "foobot-async"; 14 version = "1.0.1"; 15 pyproject = true; 16 17 src = fetchPypi { 18 pname = "foobot_async"; 19 inherit version; 20 hash = "sha256-QQjysk2m8QkOpLBdC8kfuoA9PcljgEwzKyrIAhxHB4c="; 21 }; 22 23 postPatch = '' 24 # https://github.com/reefab/foobot_async/issues/7 25 substituteInPlace foobot_async/__init__.py \ 26 --replace-fail "with async_timeout.timeout" "async with async_timeout.timeout" 27 ''; 28 29 build-system = [ setuptools ]; 30 31 dependencies = [ 32 aiohttp 33 async-timeout 34 ]; 35 36 nativeCheckInputs = [ 37 aioresponses 38 pytestCheckHook 39 ]; 40 41 pythonImportsCheck = [ "foobot_async" ]; 42 43 meta = { 44 description = "API Client for Foobot Air Quality Monitoring devices"; 45 homepage = "https://github.com/reefab/foobot_async"; 46 license = lib.licenses.mit; 47 maintainers = with lib.maintainers; [ dotlambda ]; 48 }; 49}