1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 lxml,
6 setuptools,
7}:
8
9buildPythonPackage rec {
10 pname = "dbus-deviation";
11 version = "0.6.1";
12 pyproject = true;
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-4GuI7+IjiF0nJd9Rz3ybe0Y9HG8E6knUaQh0MY0Ot6M=";
17 };
18
19 postPatch = ''
20 substituteInPlace setup.py \
21 --replace-fail "'setuptools_git >= 0.3'," "" \
22 --replace-fail "'sphinx'," ""
23 '';
24
25 build-system = [ setuptools ];
26 dependencies = [ lxml ];
27
28 pythonImportsCheck = [ "dbusdeviation" ];
29
30 meta = with lib; {
31 homepage = "https://tecnocode.co.uk/dbus-deviation/";
32 description = "Project for parsing D-Bus introspection XML and processing it in various ways";
33 license = licenses.lgpl21Plus;
34 maintainers = [ ];
35 };
36}