Skip to content

Commit

Permalink
python312Packages.py-improv-ble-client: init at 1.0.4 (#352341)
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt authored Oct 30, 2024
2 parents 3c280ca + 0af4945 commit 061ac82
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 1 deletion.
50 changes: 50 additions & 0 deletions pkgs/development/python-modules/py-improv-ble-client/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
lib,
bleak-retry-connector,
bleak,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
}:

buildPythonPackage rec {
pname = "py-improv-ble-client";
version = "1.0.4";
pyproject = true;

disabled = pythonOlder "3.11";

src = fetchFromGitHub {
owner = "home-assistant-libs";
repo = "py-improv-ble-client";
rev = "refs/tags/${version}";
hash = "sha256-leYSDB5/jFqlvX78OYzlFkkVxIkJ7iOUoLHBuVj7tAo=";
};

postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "setuptools~=65.6" "setuptools" \
--replace-fail "wheel~=0.37.1" "wheel"
'';

build-system = [ setuptools ];

dependencies = [
bleak
bleak-retry-connector
];

# Module has no tests
doCheck = false;

pythonImportsCheck = [ "improv_ble_client" ];

meta = {
description = "Module to provision devices which implement Improv via BLE";
homepage = "https://github.com/home-assistant-libs/py-improv-ble-client";
changelog = "https://github.com/home-assistant-libs/py-improv-ble-client/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
4 changes: 3 additions & 1 deletion pkgs/servers/home-assistant/component-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1941,12 +1941,13 @@
home-assistant-intents
ifaddr
mutagen
py-improv-ble-client
pymicro-vad
pyserial
pyspeex-noise
pyudev
zeroconf
]; # missing inputs: py-improv-ble-client
];
"incomfort" = ps: with ps; [
incomfort-client
];
Expand Down Expand Up @@ -5345,6 +5346,7 @@
"image_upload"
"imap"
"imgw_pib"
"improv_ble"
"incomfort"
"influxdb"
"inkbird"
Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9203,6 +9203,8 @@ self: super: with self; {

py-expression-eval = callPackage ../development/python-modules/py-expression-eval { };

py-improv-ble-client = callPackage ../development/python-modules/py-improv-ble-client { };

py-machineid = callPackage ../development/python-modules/py-machineid { };

py-ocsf-models = callPackage ../development/python-modules/py-ocsf-models { };
Expand Down

0 comments on commit 061ac82

Please sign in to comment.