Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 58 lines 1.2 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}: 14 15buildPythonPackage rec { 16 pname = "aiobiketrax"; 17 version = "1.3.0"; 18 pyproject = true; 19 20 disabled = pythonOlder "3.9"; 21 22 src = fetchFromGitHub { 23 owner = "basilfx"; 24 repo = "aiobiketrax"; 25 rev = "refs/tags/v${version}"; 26 hash = "sha256-6hSSPanagYKZxoyU8mp/1bWRcpJJkhNw3Rh82ogKGr4="; 27 }; 28 29 postPatch = '' 30 # https://github.com/basilfx/aiobiketrax/pull/63 31 substituteInPlace aiobiketrax/api.py \ 32 --replace-fail "auth0.v3" "auth0" 33 ''; 34 35 pythonRelaxDeps = [ "auth0-python" ]; 36 37 build-system = [ poetry-core ]; 38 39 40 dependencies = [ 41 aiohttp 42 auth0-python 43 python-dateutil 44 pyjwt 45 ]; 46 47 nativeCheckInputs = [ pytestCheckHook ]; 48 49 pythonImportsCheck = [ "aiobiketrax" ]; 50 51 meta = with lib; { 52 description = "Library for interacting with the PowUnity BikeTrax GPS tracker"; 53 homepage = "https://github.com/basilfx/aiobiketrax"; 54 changelog = "https://github.com/basilfx/aiobiketrax/blob/v${version}/CHANGELOG.md"; 55 license = with licenses; [ mit ]; 56 maintainers = with maintainers; [ fab ]; 57 }; 58}