nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 bleak,
4 bleak-retry-connector,
5 bluetooth-data-tools,
6 bluetooth-sensor-state-data,
7 buildPythonPackage,
8 fetchFromGitHub,
9 miauth,
10 setuptools,
11 wheel,
12}:
13
14buildPythonPackage rec {
15 pname = "ninebot-ble";
16 version = "0.0.6";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "ownbee";
21 repo = "ninebot-ble";
22 tag = version;
23 hash = "sha256-gA3VTs45vVpO0Iy8MbvvDf9j99vsFzrkADaJEslx6y0=";
24 };
25
26 nativeBuildInputs = [
27 setuptools
28 wheel
29 ];
30
31 propagatedBuildInputs = [
32 bleak
33 bleak-retry-connector
34 bluetooth-data-tools
35 bluetooth-sensor-state-data
36 miauth
37 ];
38
39 # Module has no test
40 doCheck = false;
41
42 pythonImportsCheck = [ "ninebot_ble" ];
43
44 meta = {
45 description = "Ninebot scooter BLE client";
46 mainProgram = "ninebot-ble";
47 homepage = "https://github.com/ownbee/ninebot-ble";
48 license = lib.licenses.mit;
49 maintainers = with lib.maintainers; [ fab ];
50 };
51}