blob: 70270e72cb072d5afca0313c861fb21b9edf324a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{
lib,
bleak-retry-connector,
bleak,
buildPythonPackage,
fetchFromGitHub,
setuptools,
}:
buildPythonPackage rec {
pname = "py-improv-ble-client";
version = "2.0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "home-assistant-libs";
repo = "py-improv-ble-client";
tag = version;
hash = "sha256-PkAZhKgj+xQtOOCccBXbR2QkwlkYavJe1pfU9nMhuVs=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "setuptools>=65.6,<81.0" "setuptools" \
--replace-fail "wheel>=0.37.1,<0.46.0" "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/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
|