Files
nixpkgs/pkgs/development/python-modules/ninebot-ble/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

55 lines
997 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 = {
description = "Ninebot scooter BLE client";
mainProgram = "ninebot-ble";
homepage = "https://github.com/ownbee/ninebot-ble";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}