Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 1.1 kB view raw
1{ lib 2, aiohttp 3, buildPythonPackage 4, cryptography 5, fetchFromGitHub 6, pytest-asyncio 7, pytestCheckHook 8, pythonOlder 9, stdiomask 10}: 11 12buildPythonPackage rec { 13 pname = "subarulink"; 14 version = "0.7.6-1"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "G-Two"; 21 repo = pname; 22 rev = "refs/tags/v${version}"; 23 hash = "sha256-/VaGiOnPyTHSwkxlQtwyIZohD3QK897kapmM3S8bHtM="; 24 }; 25 26 propagatedBuildInputs = [ 27 aiohttp 28 stdiomask 29 ]; 30 31 nativeCheckInputs = [ 32 cryptography 33 pytest-asyncio 34 pytestCheckHook 35 ]; 36 37 postPatch = '' 38 substituteInPlace setup.cfg \ 39 --replace "--cov=subarulink" "" 40 ''; 41 42 __darwinAllowLocalNetworking = true; 43 44 preCheck = '' 45 export HOME=$(mktemp -d) 46 ''; 47 48 pythonImportsCheck = [ 49 "subarulink" 50 ]; 51 52 meta = with lib; { 53 description = "Python module for interacting with STARLINK-enabled vehicle"; 54 homepage = "https://github.com/G-Two/subarulink"; 55 changelog = "https://github.com/G-Two/subarulink/releases/tag/v${version}"; 56 license = with licenses; [ asl20 ]; 57 maintainers = with maintainers; [ fab ]; 58 }; 59}