1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 poetry-core,
7 aiohttp,
8 sensor-state-data,
9 pytestCheckHook,
10 pytest-asyncio,
11}:
12
13buildPythonPackage rec {
14 pname = "anova-wifi";
15 version = "0.17.0";
16 pyproject = true;
17
18 disabled = pythonOlder "3.10";
19
20 src = fetchFromGitHub {
21 owner = "Lash-L";
22 repo = "anova_wifi";
23 rev = "refs/tags/v${version}";
24 hash = "sha256-F/bd5BtHpF3778eoK0QBaSmdTOpLlz+fixCYR74BRZw=";
25 };
26
27 postPatch = ''
28 substituteInPlace pyproject.toml \
29 --replace-fail "--cov=anova_wifi --cov-report=term-missing:skip-covered" ""
30 '';
31
32 build-system = [ poetry-core ];
33
34 dependencies = [
35 aiohttp
36 sensor-state-data
37 ];
38
39 nativeCheckInputs = [
40 pytestCheckHook
41 pytest-asyncio
42 ];
43
44 disabledTests = [
45 # Makes network calls
46 "test_async_data_1"
47 ];
48
49 pythonImportsCheck = [ "anova_wifi" ];
50
51 meta = with lib; {
52 description = "Python package for reading anova sous vide api data";
53 homepage = "https://github.com/Lash-L/anova_wifi";
54 changelog = "https://github.com/Lash-L/anova_wifi/releases/tag/v${version}";
55 maintainers = with maintainers; [ jamiemagee ];
56 license = licenses.mit;
57 };
58}