blob: 79f00a7e19ff7321c1691b290c3027ac2d7792a1 (
plain) (
blame)
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
54
55
56
|
{ lib
, bleak
, bleak-retry-connector
, bluetooth-data-tools
, bluetooth-sensor-state-data
, buildPythonPackage
, fetchFromGitHub
, miauth
, pythonOlder
, setuptools
, wheel
}:
buildPythonPackage rec {
pname = "ninebot-ble";
version = "0.0.6";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "ownbee";
repo = "ninebot-ble";
rev = "refs/tags/${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 = with lib; {
description = "Ninebot scooter BLE client";
mainProgram = "ninebot-ble";
homepage = "https://github.com/ownbee/ninebot-ble";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
|