2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
bleak,
|
|
|
|
bleak-retry-connector,
|
|
|
|
bluetooth-data-tools,
|
|
|
|
bluetooth-sensor-state-data,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
miauth,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
wheel,
|
2024-01-02 11:29:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "ninebot_ble" ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Ninebot scooter BLE client";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "ninebot-ble";
|
2024-01-02 11:29:13 +00:00
|
|
|
homepage = "https://github.com/ownbee/ninebot-ble";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|