Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
55 lines
999 B
Nix
55 lines
999 B
Nix
{
|
|
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";
|
|
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 = with lib; {
|
|
description = "Ninebot scooter BLE client";
|
|
mainProgram = "ninebot-ble";
|
|
homepage = "https://github.com/ownbee/ninebot-ble";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|