at 24.11-pre 60 lines 1.3 kB view raw
1{ 2 lib, 3 aiohttp, 4 auth0-python, 5 buildPythonPackage, 6 fetchFromGitHub, 7 poetry-core, 8 pyjwt, 9 pytest-aiohttp, 10 pytestCheckHook, 11 python-dateutil, 12 pythonOlder, 13 pythonRelaxDepsHook, 14}: 15 16buildPythonPackage rec { 17 pname = "aiobiketrax"; 18 version = "1.3.0"; 19 pyproject = true; 20 21 disabled = pythonOlder "3.9"; 22 23 src = fetchFromGitHub { 24 owner = "basilfx"; 25 repo = "aiobiketrax"; 26 rev = "refs/tags/v${version}"; 27 hash = "sha256-6hSSPanagYKZxoyU8mp/1bWRcpJJkhNw3Rh82ogKGr4="; 28 }; 29 30 postPatch = '' 31 # https://github.com/basilfx/aiobiketrax/pull/63 32 substituteInPlace aiobiketrax/api.py \ 33 --replace-fail "auth0.v3" "auth0" 34 ''; 35 36 pythonRelaxDeps = [ "auth0-python" ]; 37 38 build-system = [ poetry-core ]; 39 40 nativeBuildInputs = [ pythonRelaxDepsHook ]; 41 42 dependencies = [ 43 aiohttp 44 auth0-python 45 python-dateutil 46 pyjwt 47 ]; 48 49 nativeCheckInputs = [ pytestCheckHook ]; 50 51 pythonImportsCheck = [ "aiobiketrax" ]; 52 53 meta = with lib; { 54 description = "Library for interacting with the PowUnity BikeTrax GPS tracker"; 55 homepage = "https://github.com/basilfx/aiobiketrax"; 56 changelog = "https://github.com/basilfx/aiobiketrax/blob/v${version}/CHANGELOG.md"; 57 license = with licenses; [ mit ]; 58 maintainers = with maintainers; [ fab ]; 59 }; 60}