blob: f521f8b1c7efcb866033d80eaff7c405703187ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
{
lib,
aiohttp,
auth0-python,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pyjwt,
pytestCheckHook,
python-dateutil,
}:
buildPythonPackage rec {
pname = "aiobiketrax";
version = "1.3.1";
pyproject = true;
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 = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
|