nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 aiohttp,
7 sensor-state-data,
8 pytestCheckHook,
9 pytest-asyncio,
10 pytest-cov-stub,
11}:
12
13buildPythonPackage rec {
14 pname = "anova-wifi";
15 version = "0.17.1";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "Lash-L";
20 repo = "anova_wifi";
21 tag = "v${version}";
22 hash = "sha256-TRiv5ljdVqc4qeX+fSH+aTDf5UyNII8/twlNx3KC6oI=";
23 };
24
25 build-system = [ poetry-core ];
26
27 dependencies = [
28 aiohttp
29 sensor-state-data
30 ];
31
32 nativeCheckInputs = [
33 pytestCheckHook
34 pytest-asyncio
35 pytest-cov-stub
36 ];
37
38 disabledTests = [
39 # Makes network calls
40 "test_async_data_1"
41 # async def functions are not natively supported.
42 "test_can_create"
43 ];
44
45 pythonImportsCheck = [ "anova_wifi" ];
46
47 meta = {
48 description = "Python package for reading anova sous vide api data";
49 homepage = "https://github.com/Lash-L/anova_wifi";
50 changelog = "https://github.com/Lash-L/anova_wifi/releases/tag/v${version}";
51 maintainers = with lib.maintainers; [ jamiemagee ];
52 license = lib.licenses.mit;
53 };
54}