1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 12:11:28 +00:00
Fabian Affolter 2024-03-03 20:15:50 +01:00
parent 46fe45cf25
commit 139eb03b71

View file

@ -1,5 +1,6 @@
{ lib
, aiohttp
, aiooui
, buildPythonPackage
, fetchFromGitHub
, home-assistant-bluetooth
@ -11,21 +12,21 @@
buildPythonPackage rec {
pname = "ibeacon-ble";
version = "1.0.1";
format = "pyproject";
version = "1.2.0";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "Bluetooth-Devices";
repo = pname;
repo = "ibeacon-ble";
rev = "refs/tags/v${version}";
hash = "sha256-iYgGflM0IpSIMNgPpJAFAl9FYoMfRinM3sP6VRcBSMc=";
hash = "sha256-1liSWxduYpjIMu7226EH4bsc7gca5g/fyL79W4ZMdU4=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=ibeacon_ble --cov-report=term-missing:skip-covered" ""
--replace-fail " --cov=ibeacon_ble --cov-report=term-missing:skip-covered" ""
'';
nativeBuildInputs = [
@ -34,6 +35,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
aiohttp
aiooui
home-assistant-bluetooth
mac-vendor-lookup
];