Diff: https://github.com/basilfx/aiobiketrax/compare/refs/tags/v1.0.0...v1.1.0 Changelog: https://github.com/basilfx/aiobiketrax/blob/v1.1.0/CHANGELOG.md
67 lines
1.3 KiB
Nix
67 lines
1.3 KiB
Nix
{ lib
|
|
, aiohttp
|
|
, auth0-python
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, pyjwt
|
|
, pytest-aiohttp
|
|
, pytestCheckHook
|
|
, python-dateutil
|
|
, pythonOlder
|
|
, pythonRelaxDepsHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aiobiketrax";
|
|
version = "1.1.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "basilfx";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-qt2/Wf9qolNF83tf2G5xGFJiLTbOWLPbtCnDfIrKvoI=";
|
|
};
|
|
|
|
postPatch = ''
|
|
# https://github.com/basilfx/aiobiketrax/pull/63
|
|
substituteInPlace aiobiketrax/api.py \
|
|
--replace "auth0.v3" "auth0"
|
|
'';
|
|
|
|
pythonRelaxDeps = [
|
|
"auth0-python"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
pythonRelaxDepsHook
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
auth0-python
|
|
python-dateutil
|
|
pyjwt
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"aiobiketrax"
|
|
];
|
|
|
|
meta = with lib; {
|
|
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 licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|