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