blob: 81afcca88ab0ea08af57824517c1f3d42cb8ae61 (
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
|
{
buildPythonPackage,
fetchFromGitHub,
lib,
hatchling,
aiohttp,
yarl,
}:
buildPythonPackage rec {
pname = "qbusmqttapi";
version = "1.4.2";
pyproject = true;
src = fetchFromGitHub {
owner = "Qbus-iot";
repo = "qbusmqttapi";
tag = "v${version}";
hash = "sha256-8TNtfBxJcSwlcAgKF6Gvn+e4NGbOIE3JWBAgFKmNyKA=";
};
postPatch = ''
# Upstream uses a placeholder version in pyproject.toml
substituteInPlace pyproject.toml \
--replace-fail '"0.0.0"' '"${version}"'
'';
build-system = [ hatchling ];
dependencies = [
aiohttp
yarl
];
pythonImportsCheck = [ "qbusmqttapi" ];
# upstream has no tests
doCheck = false;
meta = {
description = "MQTT API for Qbus Home Automation";
homepage = "https://github.com/Qbus-iot/qbusmqttapi";
changelog = "https://github.com/Qbus-iot/qbusmqttapi/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}
|