python3Packages.dbus-fast: init at 1.4.0

This commit is contained in:
Martin Weinelt 2022-09-14 21:20:59 +02:00
parent d4c5945064
commit 2221765096
2 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,47 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pythonOlder
}:
buildPythonPackage rec {
pname = "dbus-fast";
version = "1.4.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Bluetooth-Devices";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-vbsigiUSGeetY+1MEeQ/cO3Oj8Ah0Yg9BUPo2Gc06KU=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace "--cov=dbus_fast --cov-report=term-missing:skip-covered" ""
'';
nativeBuildInputs = [
poetry-core
];
pythonImportsCheck = [
"dbus_fast"
"dbus_fast.aio"
"dbus_fast.service"
"dbus_fast.message"
];
# requires a running dbus daemon
doCheck = false;
meta = with lib; {
changelog = "https://github.com/Bluetooth-Devices/dbus-fast/releases/tag/v${version}";
description = "A faster version of dbus-next";
homepage = "https://github.com/Bluetooth-Devices/dbus-fast";
license = licenses.mit;
maintainers = lib.teams.home-assistant.members;
};
}

View File

@ -2301,6 +2301,8 @@ in {
dbus-client-gen = callPackage ../development/python-modules/dbus-client-gen { };
dbus-fast = callPackage ../development/python-modules/dbus-fast { };
dbus-next = callPackage ../development/python-modules/dbus-next { };
dbus-python = callPackage ../development/python-modules/dbus {