mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 04:13:01 +00:00
python310Packages.led-ble: init at 0.7.0
This commit is contained in:
parent
959da03e62
commit
488447936e
57
pkgs/development/python-modules/led-ble/default.nix
Normal file
57
pkgs/development/python-modules/led-ble/default.nix
Normal file
@ -0,0 +1,57 @@
|
||||
{ lib
|
||||
, async-timeout
|
||||
, bleak
|
||||
, bleak-retry-connector
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, flux-led
|
||||
, poetry-core
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "led-ble";
|
||||
version = "0.7.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Bluetooth-Devices";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-B7ywK0xkSoO9Cg2VTxxzebnnHXSCD8jf2Ylk4Fw4VY4=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
async-timeout
|
||||
bleak
|
||||
bleak-retry-connector
|
||||
flux-led
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace " --cov=led_ble --cov-report=term-missing:skip-covered" ""
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"led_ble"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Library for LED BLE devices";
|
||||
homepage = "https://github.com/Bluetooth-Devices/led-ble";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -5057,6 +5057,8 @@ in {
|
||||
|
||||
leb128 = callPackage ../development/python-modules/leb128 { };
|
||||
|
||||
led-ble = callPackage ../development/python-modules/led-ble { };
|
||||
|
||||
ledger = (toPythonModule (pkgs.ledger.override {
|
||||
usePython = true;
|
||||
python3 = python;
|
||||
|
Loading…
Reference in New Issue
Block a user