depot/third_party/nixpkgs/pkgs/development/python-modules/foobot-async/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

46 lines
845 B
Nix

{
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=";
};
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 ];
};
}