-
Notifications
You must be signed in to change notification settings - Fork 1
/
m365.nix
32 lines (27 loc) · 841 Bytes
/
m365.nix
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
{ lib
, python3
, fetchFromGitHub
}:
python3.pkgs.buildPythonApplication rec {
pname = "m365py";
version = "unstable-2019-07-08";
pyproject = true;
src = fetchFromGitHub {
owner = "AntonHakansson";
repo = "m365py";
rev = "4e282209b3667f037012f57227da2505cadc8c57";
hash = "sha256-0VhuSnGDoXDkTt9WaeTuI3bvEJmZ/ZqIl/V92y9oJBg=";
};
nativeBuildInputs = [
python3.pkgs.setuptools
python3.pkgs.wheel
];
pythonImportsCheck = [ "m365py" ];
meta = with lib; {
description = "A lightweight python library to receive parsed BLE Xiaomi M365 scooter(Version=V1.3.8) messages using bluepy";
homepage = "https://github.com/AntonHakansson/m365py.git";
license = licenses.unfree; # FIXME: nix-init did not found a license
maintainers = with maintainers; [ ];
mainProgram = "m365py";
};
}