python312Packages.*-ble: migrate to pytest-cov-stub (#365338)

This commit is contained in:
Nick Cao
2024-12-16 09:31:09 -05:00
committed by GitHub
19 changed files with 172 additions and 188 deletions
@@ -7,6 +7,7 @@
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
}:
@@ -25,11 +26,6 @@ buildPythonPackage rec {
hash = "sha256-m2jsXLrj2yS2Wi2dSwyxBv/nXmU738gd5iJ1JVfakUg=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "-v -Wdefault --cov=airthings_ble --cov-report=term-missing:skip-covered" ""
'';
build-system = [ poetry-core ];
dependencies = [
@@ -38,7 +34,10 @@ buildPythonPackage rec {
bleak-retry-connector
] ++ lib.optionals (pythonOlder "3.11") [ async-timeout ];
nativeCheckInputs = [ pytestCheckHook ];
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "airthings_ble" ];
@@ -5,6 +5,7 @@
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
sensor-state-data,
@@ -13,31 +14,29 @@
buildPythonPackage rec {
pname = "bluemaestro-ble";
version = "0.2.3";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "Bluetooth-Devices";
repo = pname;
repo = "bluemaestro-ble";
rev = "refs/tags/v${version}";
hash = "sha256-mJ5JNGN4F9U3WMJQDwiZwuxE0zOirwo1sWF3/bVwXhY=";
};
nativeBuildInputs = [ poetry-core ];
build-system = [ poetry-core ];
propagatedBuildInputs = [
dependencies = [
bluetooth-data-tools
bluetooth-sensor-state-data
sensor-state-data
];
nativeCheckInputs = [ pytestCheckHook ];
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=bluemaestro_ble --cov-report=term-missing:skip-covered" ""
'';
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "bluemaestro_ble" ];
@@ -45,7 +44,7 @@ buildPythonPackage rec {
description = "Library for bluemaestro BLE devices";
homepage = "https://github.com/Bluetooth-Devices/bluemaestro-ble";
changelog = "https://github.com/Bluetooth-Devices/bluemaestro-ble/blob/v${version}/CHANGELOG.md";
license = with licenses; [ mit ];
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
@@ -6,6 +6,7 @@
cryptography,
fetchFromGitHub,
poetry-core,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
pytz,
@@ -26,11 +27,6 @@ buildPythonPackage rec {
hash = "sha256-TlZyNGfHNKN+6tCKepLS+fbgfq3a1uzeCXl25khl6d8=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail " --cov=bthome_ble --cov-report=term-missing:skip-covered" ""
'';
build-system = [ poetry-core ];
dependencies = [
@@ -41,7 +37,10 @@ buildPythonPackage rec {
pytz
];
nativeCheckInputs = [ pytestCheckHook ];
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "bthome_ble" ];
@@ -6,6 +6,7 @@
fetchFromGitHub,
home-assistant-bluetooth,
poetry-core,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
sensor-state-data,
@@ -25,11 +26,6 @@ buildPythonPackage rec {
hash = "sha256-w21paR1VTV/ZFnl9SKkJmFFDZMPgA3d7P6blceVvnVk=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail " --cov=govee_ble --cov-report=term-missing:skip-covered" ""
'';
build-system = [ poetry-core ];
dependencies = [
@@ -39,7 +35,10 @@ buildPythonPackage rec {
sensor-state-data
];
nativeCheckInputs = [ pytestCheckHook ];
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "govee_ble" ];
@@ -7,6 +7,8 @@
home-assistant-bluetooth,
mac-vendor-lookup,
poetry-core,
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
}:
@@ -25,21 +27,20 @@ buildPythonPackage rec {
hash = "sha256-1liSWxduYpjIMu7226EH4bsc7gca5g/fyL79W4ZMdU4=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail " --cov=ibeacon_ble --cov-report=term-missing:skip-covered" ""
'';
build-system = [ poetry-core ];
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
dependencies = [
aiohttp
aiooui
home-assistant-bluetooth
mac-vendor-lookup
];
nativeCheckInputs = [ pytestCheckHook ];
nativeCheckInputs = [
pytest-asyncio
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "ibeacon_ble" ];
@@ -47,7 +48,7 @@ buildPythonPackage rec {
description = "Library for iBeacon BLE devices";
homepage = "https://github.com/Bluetooth-Devices/ibeacon-ble";
changelog = "https://github.com/Bluetooth-Devices/ibeacon-ble/blob/v${version}/CHANGELOG.md";
license = with licenses; [ mit ];
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
@@ -6,6 +6,7 @@
fetchFromGitHub,
home-assistant-bluetooth,
poetry-core,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
sensor-state-data,
@@ -14,32 +15,30 @@
buildPythonPackage rec {
pname = "inkbird-ble";
version = "0.5.8";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "Bluetooth-Devices";
repo = pname;
repo = "inkbird-ble";
rev = "refs/tags/v${version}";
hash = "sha256-cUqU4XaY7CORhzy0AGjXI5c5ka+PnF4cHdyopyEBcLo=";
};
nativeBuildInputs = [ poetry-core ];
build-system = [ poetry-core ];
propagatedBuildInputs = [
dependencies = [
bluetooth-data-tools
bluetooth-sensor-state-data
home-assistant-bluetooth
sensor-state-data
];
nativeCheckInputs = [ pytestCheckHook ];
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=inkbird_ble --cov-report=term-missing:skip-covered" ""
'';
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "inkbird_ble" ];
@@ -47,7 +46,7 @@ buildPythonPackage rec {
description = "Library for Inkbird BLE devices";
homepage = "https://github.com/Bluetooth-Devices/inkbird-ble";
changelog = "https://github.com/Bluetooth-Devices/inkbird-ble/blob/v${version}/CHANGELOG.md";
license = with licenses; [ mit ];
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
@@ -5,6 +5,7 @@
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
sensor-state-data,
@@ -13,31 +14,29 @@
buildPythonPackage rec {
pname = "kegtron-ble";
version = "0.4.0";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "Bluetooth-Devices";
repo = pname;
repo = "kegtron-ble";
rev = "refs/tags/v${version}";
hash = "sha256-O5I5shW8nL2RAQptS2Bp/GI/4L6o0xXXmwYvRq0MM8o=";
};
nativeBuildInputs = [ poetry-core ];
build-system = [ poetry-core ];
propagatedBuildInputs = [
dependencies = [
bluetooth-data-tools
bluetooth-sensor-state-data
sensor-state-data
];
nativeCheckInputs = [ pytestCheckHook ];
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=kegtron_ble --cov-report=term-missing:skip-covered" ""
'';
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "kegtron_ble" ];
@@ -45,7 +44,7 @@ buildPythonPackage rec {
description = "Library for Kegtron BLE devices";
homepage = "https://github.com/Bluetooth-Devices/kegtron-ble";
changelog = "https://github.com/Bluetooth-Devices/kegtron-ble/blob/v${version}/CHANGELOG.md";
license = with licenses; [ mit ];
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
@@ -1,11 +1,12 @@
{
lib,
async-timeout,
bleak,
bleak-retry-connector,
bleak,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
}:
@@ -13,31 +14,29 @@
buildPythonPackage rec {
pname = "ld2410-ble";
version = "0.2.0";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "930913";
repo = pname;
repo = "ld2410-ble";
rev = "refs/tags/v${version}";
hash = "sha256-wQnE2hNT0UOnPJbHq1eayIO8g0XRZvEH6V19DL6RqoA=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=ld2410_ble --cov-report=term-missing:skip-covered" ""
'';
build-system = [ poetry-core ];
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
dependencies = [
async-timeout
bleak
bleak-retry-connector
];
nativeCheckInputs = [ pytestCheckHook ];
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "ld2410_ble" ];
@@ -45,7 +44,7 @@ buildPythonPackage rec {
description = "Library for the LD2410B modules from HiLinks";
homepage = "https://github.com/930913/ld2410-ble";
changelog = "https://github.com/930913/ld2410-ble/blob/v${version}/CHANGELOG.md";
license = with licenses; [ mit ];
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
@@ -5,6 +5,7 @@
fetchFromGitHub,
home-assistant-bluetooth,
poetry-core,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
sensor-state-data,
@@ -13,31 +14,29 @@
buildPythonPackage rec {
pname = "moat-ble";
version = "0.1.1";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "Bluetooth-Devices";
repo = pname;
repo = "moat-ble";
rev = "refs/tags/v${version}";
hash = "sha256-dy1Fm0Z1PUsPY8QTiXUcWSi+csFnTUsobSkA92m06QI=";
};
nativeBuildInputs = [ poetry-core ];
build-system = [ poetry-core ];
propagatedBuildInputs = [
dependencies = [
bluetooth-sensor-state-data
home-assistant-bluetooth
sensor-state-data
];
nativeCheckInputs = [ pytestCheckHook ];
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=moat_ble --cov-report=term-missing:skip-covered" ""
'';
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "moat_ble" ];
@@ -45,7 +44,7 @@ buildPythonPackage rec {
description = "Library for Moat BLE devices";
homepage = "https://github.com/Bluetooth-Devices/moat-ble";
changelog = "https://github.com/Bluetooth-Devices/moat-ble/releases/tag/v${version}";
license = with licenses; [ mit ];
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
@@ -6,6 +6,7 @@
fetchFromGitHub,
home-assistant-bluetooth,
poetry-core,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
sensor-state-data,
@@ -20,26 +21,24 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "bluetooth-devices";
repo = pname;
repo = "mopeka-iot-ble";
rev = "refs/tags/v${version}";
hash = "sha256-CKLC0p66JapE9qNePE11ttoGMVd4kA7g28kA+pYLXCE=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=mopeka_iot_ble --cov-report=term-missing:skip-covered" ""
'';
build-system = [ poetry-core ];
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
dependencies = [
bluetooth-data-tools
bluetooth-sensor-state-data
home-assistant-bluetooth
sensor-state-data
];
nativeCheckInputs = [ pytestCheckHook ];
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "mopeka_iot_ble" ];
@@ -47,7 +46,7 @@ buildPythonPackage rec {
description = "Library for Mopeka IoT BLE devices";
homepage = "https://github.com/bluetooth-devices/mopeka-iot-ble";
changelog = "https://github.com/Bluetooth-Devices/mopeka-iot-ble/releases/tag/v${version}";
license = with licenses; [ mit ];
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
@@ -9,6 +9,7 @@
home-assistant-bluetooth,
poetry-core,
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
}:
@@ -27,14 +28,9 @@ buildPythonPackage rec {
hash = "sha256-e6L8HXpqOAHnEktIJ1N1atC5QXno669W3c/S7cISa48=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail " --cov=oralb_ble --cov-report=term-missing:skip-covered" ""
'';
build-system = [ poetry-core ];
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
dependencies = [
bleak
bleak-retry-connector
bluetooth-data-tools
@@ -44,6 +40,7 @@ buildPythonPackage rec {
nativeCheckInputs = [
pytest-asyncio
pytest-cov-stub
pytestCheckHook
];
@@ -58,7 +55,7 @@ buildPythonPackage rec {
description = "Library for Oral B BLE devices";
homepage = "https://github.com/Bluetooth-Devices/oralb-ble";
changelog = "https://github.com/Bluetooth-Devices/oralb-ble/releases/tag/v${version}";
license = with licenses; [ mit ];
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
@@ -5,6 +5,7 @@
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
sensor-state-data,
@@ -13,31 +14,29 @@
buildPythonPackage rec {
pname = "qingping-ble";
version = "0.10.0";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "bluetooth-devices";
repo = pname;
repo = "qingping-ble";
rev = "refs/tags/v${version}";
hash = "sha256-5w3KGJLdHFv6kURKTz3YImZNjaETiVqbbJTJpBSLSo8=";
};
nativeBuildInputs = [ poetry-core ];
build-system = [ poetry-core ];
propagatedBuildInputs = [
dependencies = [
bluetooth-data-tools
bluetooth-sensor-state-data
sensor-state-data
];
nativeCheckInputs = [ pytestCheckHook ];
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=qingping_ble --cov-report=term-missing:skip-covered" ""
'';
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "qingping_ble" ];
@@ -45,7 +44,7 @@ buildPythonPackage rec {
description = "Library for Qingping BLE devices";
homepage = "https://github.com/bluetooth-devices/qingping-ble";
changelog = "https://github.com/Bluetooth-Devices/qingping-ble/blob/v${version}/CHANGELOG.md";
license = with licenses; [ mit ];
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
@@ -6,6 +6,7 @@
fetchFromGitHub,
home-assistant-bluetooth,
poetry-core,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
sensor-state-data,
@@ -14,32 +15,30 @@
buildPythonPackage rec {
pname = "rapt-ble";
version = "0.1.2";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "sairon";
repo = pname;
repo = "rapt-ble";
rev = "refs/tags/v${version}";
hash = "sha256-ozZwVgTV/xYl1nXLiybcPs6DQKocNdbxTEYDfYyQuvY=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=rapt_ble --cov-report=term-missing:skip-covered" ""
'';
build-system = [ poetry-core ];
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
dependencies = [
bluetooth-data-tools
bluetooth-sensor-state-data
home-assistant-bluetooth
sensor-state-data
];
nativeCheckInputs = [ pytestCheckHook ];
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "rapt_ble" ];
@@ -47,7 +46,7 @@ buildPythonPackage rec {
description = "Library for RAPT Pill hydrometer BLE devices";
homepage = "https://github.com/sairon/rapt-ble";
changelog = "https://github.com/sairon/rapt-ble/blob/v${version}/CHANGELOG.md";
license = with licenses; [ mit ];
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
@@ -6,6 +6,7 @@
fetchFromGitHub,
hatchling,
home-assistant-bluetooth,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
sensor-state-data,
@@ -14,39 +15,37 @@
buildPythonPackage rec {
pname = "ruuvitag-ble";
version = "0.1.2";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "Bluetooth-Devices";
repo = pname;
repo = "ruuvitag-ble";
rev = "refs/tags/v${version}";
hash = "sha256-J+807p2mE+VZ0oqldFtjdcNGsRTkAU54s6byQSGrng4=";
};
nativeBuildInputs = [ hatchling ];
build-system = [ hatchling ];
propagatedBuildInputs = [
dependencies = [
bluetooth-data-tools
bluetooth-sensor-state-data
home-assistant-bluetooth
sensor-state-data
];
nativeCheckInputs = [ pytestCheckHook ];
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=ruuvitag_ble --cov-report=term-missing:skip-covered" ""
'';
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "ruuvitag_ble" ];
meta = with lib; {
description = "Library for Ruuvitag BLE devices";
homepage = "https://github.com/Bluetooth-Devices/ruuvitag-ble";
license = with licenses; [ mit ];
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
@@ -1,21 +1,23 @@
{
lib,
bluetooth-data-tools,
bluetooth-sensor-state-data,
buildPythonPackage,
fetchFromGitHub,
hatchling,
bluetooth-data-tools,
bluetooth-sensor-state-data,
home-assistant-bluetooth,
sensor-state-data,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
sensor-state-data,
}:
buildPythonPackage rec {
pname = "sensirion-ble";
version = "0.1.1";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.8";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "akx";
@@ -24,20 +26,20 @@ buildPythonPackage rec {
hash = "sha256-VeUfrQ/1Hqs9yueUKcv/ZpCDEEy84VDcZpuTT4fXSGw=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=sensirion_ble --cov-report=term-missing:skip-covered" ""
'';
build-system = [ hatchling ];
nativeBuildInputs = [ hatchling ];
propagatedBuildInputs = [
dependencies = [
bluetooth-data-tools
bluetooth-sensor-state-data
home-assistant-bluetooth
sensor-state-data
];
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "sensirion_ble" ];
meta = with lib; {
@@ -5,6 +5,7 @@
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
sensor-state-data,
@@ -13,31 +14,29 @@
buildPythonPackage rec {
pname = "sensorpro-ble";
version = "0.5.3";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "Bluetooth-Devices";
repo = pname;
repo = "sensorpro-ble";
rev = "refs/tags/v${version}";
hash = "sha256-Zqa6qa0Jw79Iu4VEw6KN0GsZcC1X7OpiYUiyT4zwKyY=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=sensorpro_ble --cov-report=term-missing:skip-covered" ""
'';
build-system = [ poetry-core ];
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
dependencies = [
bluetooth-data-tools
bluetooth-sensor-state-data
sensor-state-data
];
nativeCheckInputs = [ pytestCheckHook ];
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "sensorpro_ble" ];
@@ -45,7 +44,7 @@ buildPythonPackage rec {
description = "Library for Sensorpro BLE devices";
homepage = "https://github.com/Bluetooth-Devices/sensorpro-ble";
changelog = "https://github.com/Bluetooth-Devices/sensorpro-ble/blob/v${version}/CHANGELOG.md";
license = with licenses; [ mit ];
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
@@ -5,6 +5,7 @@
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
sensor-state-data,
@@ -24,20 +25,18 @@ buildPythonPackage rec {
hash = "sha256-XeLTY78zg+5HR+GH9bHl2t86ifcWm7AA4zSwJOknsdc=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=thermobeacon_ble --cov-report=term-missing:skip-covered" ""
'';
build-system = [ poetry-core ];
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
dependencies = [
bluetooth-data-tools
bluetooth-sensor-state-data
sensor-state-data
];
nativeCheckInputs = [ pytestCheckHook ];
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "thermobeacon_ble" ];
@@ -45,7 +44,7 @@ buildPythonPackage rec {
description = "Library for Thermobeacon BLE devices";
homepage = "https://github.com/bluetooth-devices/thermobeacon-ble";
changelog = "https://github.com/Bluetooth-Devices/thermobeacon-ble/releases/tag/v${version}";
license = with licenses; [ mit ];
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
@@ -5,6 +5,7 @@
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
sensor-state-data,
@@ -13,31 +14,29 @@
buildPythonPackage rec {
pname = "thermopro-ble";
version = "0.10.0";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "bluetooth-devices";
repo = pname;
repo = "thermopro-ble";
rev = "refs/tags/v${version}";
hash = "sha256-xaRbp9XLCDGJ0NE0TzJygn2OzqvSFszs97vGHawCkzU=";
};
nativeBuildInputs = [ poetry-core ];
build-system = [ poetry-core ];
propagatedBuildInputs = [
dependencies = [
bluetooth-data-tools
bluetooth-sensor-state-data
sensor-state-data
];
nativeCheckInputs = [ pytestCheckHook ];
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=thermopro_ble --cov-report=term-missing:skip-covered" ""
'';
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "thermopro_ble" ];
@@ -45,7 +44,7 @@ buildPythonPackage rec {
description = "Library for Thermopro BLE devices";
homepage = "https://github.com/bluetooth-devices/thermopro-ble";
changelog = "https://github.com/Bluetooth-Devices/thermopro-ble/blob/v${version}/CHANGELOG.md";
license = with licenses; [ mit ];
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
@@ -5,6 +5,7 @@
fetchFromGitHub,
home-assistant-bluetooth,
poetry-core,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
sensor-state-data,
@@ -13,31 +14,29 @@
buildPythonPackage rec {
pname = "tilt-ble";
version = "0.2.4";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "Bluetooth-Devices";
repo = pname;
repo = "tilt-ble";
rev = "refs/tags/v${version}";
hash = "sha256-ok9XWx47hcke535480NORfS1pSagaOJvMR48lYTa/Tg=";
};
nativeBuildInputs = [ poetry-core ];
build-system = [ poetry-core ];
propagatedBuildInputs = [
dependencies = [
bluetooth-sensor-state-data
home-assistant-bluetooth
sensor-state-data
];
nativeCheckInputs = [ pytestCheckHook ];
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=tilt_ble --cov-report=term-missing:skip-covered" ""
'';
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "tilt_ble" ];
@@ -45,7 +44,7 @@ buildPythonPackage rec {
description = "Library for Tilt BLE devices";
homepage = "https://github.com/Bluetooth-Devices/tilt-ble";
changelog = "https://github.com/Bluetooth-Devices/tilt-ble/releases/tag/v${version}";
license = with licenses; [ mit ];
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}