nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 57 lines 1.2 kB view raw
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 (finalAttrs: { 17 pname = "subarulink"; 18 version = "0.7.19"; 19 pyproject = true; 20 21 disabled = pythonOlder "3.12"; 22 23 src = fetchFromGitHub { 24 owner = "G-Two"; 25 repo = "subarulink"; 26 tag = "v${finalAttrs.version}"; 27 hash = "sha256-+huEDrcMjCMUKnzL0wfqnpVjIm8zebV3qAq4OWLZ+GU="; 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 = { 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/${finalAttrs.src.tag}"; 53 license = lib.licenses.asl20; 54 maintainers = with lib.maintainers; [ fab ]; 55 mainProgram = "subarulink"; 56 }; 57})