1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 mashumaro,
7 poetry-core,
8 pytest-asyncio,
9 pytestCheckHook,
10 pythonOlder,
11}:
12
13buildPythonPackage rec {
14 pname = "huum";
15 version = "0.7.12";
16 pyproject = true;
17
18 disabled = pythonOlder "3.11";
19
20 src = fetchFromGitHub {
21 owner = "frwickst";
22 repo = "pyhuum";
23 tag = version;
24 hash = "sha256-IyPsRtVaxsI9Y0BpzKCSsc2oAqdGQI92UqxaRGpGmak=";
25 };
26
27 nativeBuildInputs = [ poetry-core ];
28
29 propagatedBuildInputs = [
30 aiohttp
31 mashumaro
32 ];
33
34 nativeCheckInputs = [
35 pytest-asyncio
36 pytestCheckHook
37 ];
38
39 pythonImportsCheck = [ "huum" ];
40
41 meta = with lib; {
42 description = "Library for Huum saunas";
43 homepage = "https://github.com/frwickst/pyhuum";
44 changelog = "https://github.com/frwickst/pyhuum/releases/tag/${version}";
45 license = with licenses; [ mit ];
46 maintainers = with maintainers; [ fab ];
47 };
48}