mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 21:09:00 +02:00
python310Packages.oralb-ble: init at 0.10.1
This commit is contained in:
parent
c2687f9795
commit
0917dd484e
55
pkgs/development/python-modules/oralb-ble/default.nix
Normal file
55
pkgs/development/python-modules/oralb-ble/default.nix
Normal file
|
@ -0,0 +1,55 @@
|
||||||
|
{ lib
|
||||||
|
, bluetooth-data-tools
|
||||||
|
, bluetooth-sensor-state-data
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, home-assistant-bluetooth
|
||||||
|
, poetry-core
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "oralb-ble";
|
||||||
|
version = "0.10.1";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.9";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "Bluetooth-Devices";
|
||||||
|
repo = pname;
|
||||||
|
rev = "refs/tags/v${version}";
|
||||||
|
hash = "sha256-Iuu44H8fCbJysoSJLBtlJ1XE5Ad2caWihj3UZytWK3o=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
poetry-core
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
bluetooth-data-tools
|
||||||
|
bluetooth-sensor-state-data
|
||||||
|
home-assistant-bluetooth
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace pyproject.toml \
|
||||||
|
--replace " --cov=oralb_ble --cov-report=term-missing:skip-covered" ""
|
||||||
|
'';
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"oralb_ble"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Library for Oral B BLE devices";
|
||||||
|
homepage = "https://github.com/Bluetooth-Devices/oralb-ble";
|
||||||
|
license = with licenses; [ mit ];
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -6486,6 +6486,8 @@ self: super: with self; {
|
||||||
|
|
||||||
opuslib = callPackage ../development/python-modules/opuslib { };
|
opuslib = callPackage ../development/python-modules/opuslib { };
|
||||||
|
|
||||||
|
oralb-ble = callPackage ../development/python-modules/oralb-ble { };
|
||||||
|
|
||||||
orderedmultidict = callPackage ../development/python-modules/orderedmultidict { };
|
orderedmultidict = callPackage ../development/python-modules/orderedmultidict { };
|
||||||
|
|
||||||
ordered-set = callPackage ../development/python-modules/ordered-set { };
|
ordered-set = callPackage ../development/python-modules/ordered-set { };
|
||||||
|
|
Loading…
Reference in a new issue