Files
nixpkgs/pkgs/development/python-modules/dbus-deviation/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

37 lines
773 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
lxml,
setuptools,
}:
buildPythonPackage rec {
pname = "dbus-deviation";
version = "0.6.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-4GuI7+IjiF0nJd9Rz3ybe0Y9HG8E6knUaQh0MY0Ot6M=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-fail "'setuptools_git >= 0.3'," "" \
--replace-fail "'sphinx'," ""
'';
build-system = [ setuptools ];
dependencies = [ lxml ];
pythonImportsCheck = [ "dbusdeviation" ];
meta = {
homepage = "https://tecnocode.co.uk/dbus-deviation/";
description = "Project for parsing D-Bus introspection XML and processing it in various ways";
license = lib.licenses.lgpl21Plus;
maintainers = [ ];
};
}