Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / sensorpush-ble / default.nix
blobe26378b1e2465e1ed6de2b6678c77a0e8b4d8f36
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 = "sensorpush-ble";
15   version = "1.6.2";
16   pyproject = true;
18   disabled = pythonOlder "3.9";
20   src = fetchFromGitHub {
21     owner = "Bluetooth-Devices";
22     repo = "sensorpush-ble";
23     rev = "refs/tags/v${version}";
24     hash = "sha256-IZ2QSAHRdpDKFQYfqkcUm1o+7GaI8e50gEFRK3BV3s8=";
25   };
27   postPatch = ''
28     substituteInPlace pyproject.toml \
29       --replace " --cov=sensorpush_ble --cov-report=term-missing:skip-covered" ""
30   '';
32   nativeBuildInputs = [
33     poetry-core
34   ];
36   propagatedBuildInputs = [
37     bluetooth-data-tools
38     bluetooth-sensor-state-data
39     home-assistant-bluetooth
40     sensor-state-data
41   ];
43   nativeCheckInputs = [
44     pytestCheckHook  ];
47   pythonImportsCheck = [
48     "sensorpush_ble"
49   ];
51   meta = with lib; {
52     description = "Library for SensorPush BLE devices";
53     homepage = "https://github.com/Bluetooth-Devices/sensorpush-ble";
54     changelog = "https://github.com/Bluetooth-Devices/sensorpush-ble/releases/tag/v${version}";
55     license = with licenses; [ mit ];
56     maintainers = with maintainers; [ fab ];
57   };