Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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}: 14 15buildPythonPackage rec { 16 pname = "subarulink"; 17 version = "0.7.14"; 18 pyproject = true; 19 20 disabled = pythonOlder "3.7"; 21 22 src = fetchFromGitHub { 23 owner = "G-Two"; 24 repo = "subarulink"; 25 tag = "v${version}"; 26 hash = "sha256-iZWDi7vT1AQI7WbGOQZw2gE+3ht4YKnHO58ALrUGfIg="; 27 }; 28 29 build-system = [ setuptools ]; 30 31 dependencies = [ 32 aiohttp 33 stdiomask 34 ]; 35 36 nativeCheckInputs = [ 37 cryptography 38 pytest-asyncio 39 pytest-cov-stub 40 pytestCheckHook 41 ]; 42 43 __darwinAllowLocalNetworking = true; 44 45 preCheck = '' 46 export HOME=$(mktemp -d) 47 ''; 48 49 pythonImportsCheck = [ "subarulink" ]; 50 51 meta = with lib; { 52 description = "Python module for interacting with STARLINK-enabled vehicle"; 53 homepage = "https://github.com/G-Two/subarulink"; 54 changelog = "https://github.com/G-Two/subarulink/releases/tag/v${version}"; 55 license = licenses.asl20; 56 maintainers = with maintainers; [ fab ]; 57 mainProgram = "subarulink"; 58 }; 59}