Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / oralb-ble / default.nix
blob5eb5d0ce83fea75fbf866f77ba0a5a2d9507d509
1 { lib
2 , bleak-retry-connector
3 , bluetooth-data-tools
4 , bluetooth-sensor-state-data
5 , buildPythonPackage
6 , fetchFromGitHub
7 , home-assistant-bluetooth
8 , poetry-core
9 , pytestCheckHook
10 , pythonOlder
13 buildPythonPackage rec {
14   pname = "oralb-ble";
15   version = "0.17.6";
16   format = "pyproject";
18   disabled = pythonOlder "3.9";
20   src = fetchFromGitHub {
21     owner = "Bluetooth-Devices";
22     repo = pname;
23     rev = "refs/tags/v${version}";
24     hash = "sha256-6LnZ+Y68sl0uA5i764n4fFJnPeo+bAi/xgEvTK6LkXY=";
25   };
27   nativeBuildInputs = [
28     poetry-core
29   ];
31   propagatedBuildInputs = [
32     bleak-retry-connector
33     bluetooth-data-tools
34     bluetooth-sensor-state-data
35     home-assistant-bluetooth
36   ];
38   nativeCheckInputs = [
39     pytestCheckHook
40   ];
42   postPatch = ''
43     substituteInPlace pyproject.toml \
44       --replace " --cov=oralb_ble --cov-report=term-missing:skip-covered" ""
45   '';
47   pythonImportsCheck = [
48     "oralb_ble"
49   ];
51   meta = with lib; {
52     description = "Library for Oral B BLE devices";
53     homepage = "https://github.com/Bluetooth-Devices/oralb-ble";
54     changelog = "https://github.com/Bluetooth-Devices/oralb-ble/releases/tag/v${version}";
55     license = with licenses; [ mit ];
56     maintainers = with maintainers; [ fab ];
57   };