Unverified Commit 1a395c5b authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python313Packages.qbusmqttapi: 1.3.0 -> 1.4.2 (#430591)

parents b88a34ec b65f0f7d
Loading
Loading
Loading
Loading
+18 −4
Original line number Diff line number Diff line
@@ -2,22 +2,35 @@
  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" ];

@@ -27,6 +40,7 @@ buildPythonPackage rec {
  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 ];
  };