python313Packages.qbusmqttapi: 1.3.0 -> 1.4.2

Changelog: https://github.com/Qbus-iot/qbusmqttapi/releases/tag/v1.4.2

Changed files
+18 -4
pkgs
development
python-modules
qbusmqttapi
+18 -4
pkgs/development/python-modules/qbusmqttapi/default.nix
···
buildPythonPackage,
fetchFromGitHub,
lib,
-
setuptools,
+
hatchling,
+
aiohttp,
+
yarl,
}:
buildPythonPackage rec {
pname = "qbusmqttapi";
-
version = "1.3.0";
+
version = "1.4.2";
pyproject = true;
src = fetchFromGitHub {
owner = "Qbus-iot";
repo = "qbusmqttapi";
tag = "v${version}";
-
hash = "sha256-1Srp1FOnTw7TwE0OTY+q6R1d/M7/LH9leCUZMADE++Y=";
+
hash = "sha256-8TNtfBxJcSwlcAgKF6Gvn+e4NGbOIE3JWBAgFKmNyKA=";
};
-
build-system = [ setuptools ];
+
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" ];
···
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 ];
};