1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchFromGitHub,
6 hatchling,
7 aiohttp,
8 mashumaro,
9 aioresponses,
10 pytest-aio,
11 pytestCheckHook,
12 syrupy,
13}:
14
15buildPythonPackage rec {
16 pname = "solarlog-cli";
17 version = "0.4.0";
18 pyproject = true;
19
20 disabled = pythonOlder "3.12";
21
22 src = fetchFromGitHub {
23 owner = "dontinelli";
24 repo = "solarlog_cli";
25 tag = "v${version}";
26 hash = "sha256-G7DZHFg0NH3rY/tbWpXDchYHkrvG8dUvINNxBIUKnzk=";
27 };
28
29 build-system = [ hatchling ];
30
31 dependencies = [
32 aiohttp
33 mashumaro
34 ];
35
36 pythonImportsCheck = [ "solarlog_cli" ];
37
38 nativeCheckInputs = [
39 aioresponses
40 pytest-aio
41 pytestCheckHook
42 syrupy
43 ];
44
45 meta = {
46 changelog = "https://github.com/dontinelli/solarlog_cli/releases/tag/v${version}";
47 description = "Python library to access the Solar-Log JSON interface";
48 homepage = "https://github.com/dontinelli/solarlog_cli";
49 license = lib.licenses.gpl3Plus;
50 maintainers = with lib.maintainers; [ dotlambda ];
51 };
52}