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