ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / bthome-ble / default.nix
blob4e53728642df89049b412d30f8e3a15f88d47ee5
1 { lib
2 , bluetooth-data-tools
3 , bluetooth-sensor-state-data
4 , buildPythonPackage
5 , fetchFromGitHub
6 , poetry-core
7 , pycryptodomex
8 , pytestCheckHook
9 , pythonOlder
10 , sensor-state-data
13 buildPythonPackage rec {
14   pname = "bthome-ble";
15   version = "2.2.1";
16   format = "pyproject";
18   disabled = pythonOlder "3.9";
20   src = fetchFromGitHub {
21     owner = "Bluetooth-Devices";
22     repo = pname;
23     rev = "v${version}";
24     hash = "sha256-IaDnQCZJZipiPW6lOLrdxw7QfPx/zlwaizkBxv8I2V8=";
25   };
27   nativeBuildInputs = [
28     poetry-core
29   ];
31   propagatedBuildInputs = [
32     bluetooth-data-tools
33     bluetooth-sensor-state-data
34     sensor-state-data
35     pycryptodomex
36   ];
38   checkInputs = [
39     pytestCheckHook
40   ];
42   postPatch = ''
43     substituteInPlace pyproject.toml \
44       --replace " --cov=bthome_ble --cov-report=term-missing:skip-covered" ""
45   '';
47   pythonImportsCheck = [
48     "bthome_ble"
49   ];
51   meta = with lib; {
52     description = "Library for BThome BLE devices";
53     homepage = "https://github.com/Bluetooth-Devices/bthome-ble";
54     license = with licenses; [ mit ];
55     maintainers = with maintainers; [ fab ];
56   };