f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
58 lines
1.2 KiB
Nix
58 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
poetry-core,
|
|
aiohttp,
|
|
sensor-state-data,
|
|
pytestCheckHook,
|
|
pytest-asyncio,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "anova-wifi";
|
|
version = "0.17.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Lash-L";
|
|
repo = "anova_wifi";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-F/bd5BtHpF3778eoK0QBaSmdTOpLlz+fixCYR74BRZw=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace-fail "--cov=anova_wifi --cov-report=term-missing:skip-covered" ""
|
|
'';
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
sensor-state-data
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-asyncio
|
|
];
|
|
|
|
disabledTests = [
|
|
# Makes network calls
|
|
"test_async_data_1"
|
|
];
|
|
|
|
pythonImportsCheck = [ "anova_wifi" ];
|
|
|
|
meta = with lib; {
|
|
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 maintainers; [ jamiemagee ];
|
|
license = licenses.mit;
|
|
};
|
|
}
|