Files
nixpkgs/pkgs/development/python-modules/anova-wifi/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

58 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
poetry-core,
aiohttp,
sensor-state-data,
pytestCheckHook,
pytest-asyncio,
pytest-cov-stub,
}:
buildPythonPackage rec {
pname = "anova-wifi";
version = "0.17.1";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "Lash-L";
repo = "anova_wifi";
tag = "v${version}";
hash = "sha256-TRiv5ljdVqc4qeX+fSH+aTDf5UyNII8/twlNx3KC6oI=";
};
build-system = [ poetry-core ];
dependencies = [
aiohttp
sensor-state-data
];
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
pytest-cov-stub
];
disabledTests = [
# Makes network calls
"test_async_data_1"
# async def functions are not natively supported.
"test_can_create"
];
pythonImportsCheck = [ "anova_wifi" ];
meta = {
description = "Python package for reading anova sous vide api data";
homepage = "https://github.com/Lash-L/anova_wifi";
changelog = "https://github.com/Lash-L/anova_wifi/releases/tag/v${version}";
maintainers = with lib.maintainers; [ jamiemagee ];
license = lib.licenses.mit;
};
}