Files
nixpkgs/pkgs/development/python-modules/pydbus/default.nix
T
Martin Weinelt 0ec908a1b0 python311Packages.pydbus: patch python311 compat
The package has not been updated since 2018 and has been running into
removals on python311.

Fortunately getfullargspec is a drop-in replacement for getargspec, so a
simple substitution restore life support for now.
2023-10-27 01:17:10 +02:00

42 lines
798 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pygobject3
}:
buildPythonPackage rec {
pname = "pydbus";
version = "0.6.0";
pyproejct = true;
src = fetchFromGitHub {
owner = "LEW21";
repo = "pydbus";
rev = "refs/tags/v${version}";
hash = "sha256-F1KKXG+7dWlEbToqtF3G7wU0Sco7zH5NqzlL58jyDGw=";
};
postPatch = ''
substituteInPlace pydbus/_inspect3.py \
--replace "getargspec" "getfullargspec"
'';
propagatedBuildInputs = [
pygobject3
];
pythonImportsCheck = [
"pydbus"
"pydbus.generic"
];
doCheck = false; # requires a working dbus setup
meta = {
homepage = "https://github.com/LEW21/pydbus";
description = "Pythonic DBus library";
license = lib.licenses.lgpl2Plus;
maintainers = with lib.maintainers; [ ];
};
}