Merge pull request #274149 from JamieMagee/anova-wifi

python311Packages.anova-wifi: init at 0.10.3
This commit is contained in:
Martin Weinelt 2023-12-19 20:13:24 +01:00 committed by GitHub
commit 6f40f8c159
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 63 additions and 1 deletions

View File

@ -0,0 +1,59 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, poetry-core
, aiohttp
, sensor-state-data
, pytestCheckHook
, pytest-asyncio
}:
buildPythonPackage rec {
pname = "anova-wifi";
version = "0.10.3";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "Lash-L";
repo = "anova_wifi";
rev = "refs/tags/v${version}";
hash = "sha256-tCmvp29KSCkc+g0w0odcB7vGjtDx6evac7XsHEF0syM=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace "--cov=anova_wifi --cov-report=term-missing:skip-covered" ""
'';
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
sensor-state-data
];
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
];
disabledTests = [
# Makes network calls
"test_async_data_1"
];
pythonImportsCheck = [ "anova_wifi" ];
meta = with lib; {
description = "A 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 maintainers; [ jamiemagee ];
license = licenses.mit;
};
}

View File

@ -169,7 +169,8 @@
anel-pwrctrl-homeassistant
];
"anova" = ps: with ps; [
]; # missing inputs: anova-wifi
anova-wifi
];
"anthemav" = ps: with ps; [
anthemav
];

View File

@ -554,6 +554,8 @@ self: super: with self; {
anonip = callPackage ../development/python-modules/anonip { };
anova-wifi = callPackage ../development/python-modules/anova-wifi { };
ansi2html = callPackage ../development/python-modules/ansi2html { };
ansi2image = callPackage ../development/python-modules/ansi2image { };