Files
nixpkgs/pkgs/development/python-modules/aiobiketrax/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

57 lines
1.2 KiB
Nix

{
lib,
aiohttp,
auth0-python,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pyjwt,
pytestCheckHook,
python-dateutil,
pythonOlder,
}:
buildPythonPackage rec {
pname = "aiobiketrax";
version = "1.3.1";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "basilfx";
repo = "aiobiketrax";
tag = "v${version}";
hash = "sha256-N0v5SCTf3NkW/TCSTQL9VkrDj7/GXEejJGFCvJY4pIc=";
};
postPatch = ''
# https://github.com/basilfx/aiobiketrax/pull/63
substituteInPlace aiobiketrax/api.py \
--replace-fail "auth0.v3" "auth0"
'';
pythonRelaxDeps = [ "auth0-python" ];
build-system = [ poetry-core ];
dependencies = [
aiohttp
auth0-python
python-dateutil
pyjwt
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "aiobiketrax" ];
meta = {
description = "Library for interacting with the PowUnity BikeTrax GPS tracker";
homepage = "https://github.com/basilfx/aiobiketrax";
changelog = "https://github.com/basilfx/aiobiketrax/blob/v${version}/CHANGELOG.md";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ fab ];
};
}