1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 cryptography,
6 fetchFromGitHub,
7 pytest-asyncio,
8 pytest-cov-stub,
9 pytestCheckHook,
10 pythonOlder,
11 setuptools,
12 stdiomask,
13 writableTmpDirAsHomeHook,
14}:
15
16buildPythonPackage rec {
17 pname = "subarulink";
18 version = "0.7.14";
19 pyproject = true;
20
21 disabled = pythonOlder "3.12";
22
23 src = fetchFromGitHub {
24 owner = "G-Two";
25 repo = "subarulink";
26 tag = "v${version}";
27 hash = "sha256-iZWDi7vT1AQI7WbGOQZw2gE+3ht4YKnHO58ALrUGfIg=";
28 };
29
30 build-system = [ setuptools ];
31
32 dependencies = [
33 aiohttp
34 stdiomask
35 ];
36
37 nativeCheckInputs = [
38 cryptography
39 pytest-asyncio
40 pytest-cov-stub
41 pytestCheckHook
42 writableTmpDirAsHomeHook
43 ];
44
45 __darwinAllowLocalNetworking = true;
46
47 pythonImportsCheck = [ "subarulink" ];
48
49 meta = with lib; {
50 description = "Python module for interacting with STARLINK-enabled vehicle";
51 homepage = "https://github.com/G-Two/subarulink";
52 changelog = "https://github.com/G-Two/subarulink/releases/tag/${src.tag}";
53 license = licenses.asl20;
54 maintainers = with maintainers; [ fab ];
55 mainProgram = "subarulink";
56 };
57}