Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / inkbird-ble / default.nix
blobfc5eb2d12ba4de4364a6de081937033484b6723c
1 { lib
2 , bluetooth-data-tools
3 , bluetooth-sensor-state-data
4 , buildPythonPackage
5 , fetchFromGitHub
6 , home-assistant-bluetooth
7 , poetry-core
8 , pytestCheckHook
9 , pythonOlder
10 , sensor-state-data
13 buildPythonPackage rec {
14   pname = "inkbird-ble";
15   version = "0.5.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-re5HjPtssFkpcltCr0HEJmJyHbXJdkr2wDgaAHfy2Tk=";
25   };
27   nativeBuildInputs = [
28     poetry-core
29   ];
31   propagatedBuildInputs = [
32     bluetooth-data-tools
33     bluetooth-sensor-state-data
34     home-assistant-bluetooth
35     sensor-state-data
36   ];
38   nativeCheckInputs = [
39     pytestCheckHook
40   ];
42   postPatch = ''
43     substituteInPlace pyproject.toml \
44       --replace " --cov=inkbird_ble --cov-report=term-missing:skip-covered" ""
45   '';
47   pythonImportsCheck = [
48     "inkbird_ble"
49   ];
51   meta = with lib; {
52     description = "Library for Inkbird BLE devices";
53     homepage = "https://github.com/Bluetooth-Devices/inkbird-ble";
54     changelog = "https://github.com/Bluetooth-Devices/inkbird-ble/blob/v${version}/CHANGELOG.md";
55     license = with licenses; [ mit ];
56     maintainers = with maintainers; [ fab ];
57   };