blob: c173786a4d4139deed78086e7848f38555563665 (
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
|
{
lib,
bleak,
bleak-retry-connector,
bluetooth-data-tools,
bluetooth-sensor-state-data,
buildPythonPackage,
fetchFromGitHub,
miauth,
setuptools,
wheel,
}:
buildPythonPackage rec {
pname = "ninebot-ble";
version = "0.0.6";
pyproject = true;
src = fetchFromGitHub {
owner = "ownbee";
repo = "ninebot-ble";
tag = version;
hash = "sha256-gA3VTs45vVpO0Iy8MbvvDf9j99vsFzrkADaJEslx6y0=";
};
nativeBuildInputs = [
setuptools
wheel
];
propagatedBuildInputs = [
bleak
bleak-retry-connector
bluetooth-data-tools
bluetooth-sensor-state-data
miauth
];
# Module has no test
doCheck = false;
pythonImportsCheck = [ "ninebot_ble" ];
meta = {
description = "Ninebot scooter BLE client";
mainProgram = "ninebot-ble";
homepage = "https://github.com/ownbee/ninebot-ble";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
|