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