about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/dbus-deviation/default.nix
blob: 164c543a5ed796eeb0a051671f513de8825eb610 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ lib
, buildPythonPackage
, fetchPypi
, lxml
, setuptools-git
, sphinx
}:

buildPythonPackage rec {
  pname = "dbus-deviation";
  version = "0.6.1";
  format = "pyproject";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-4GuI7+IjiF0nJd9Rz3ybe0Y9HG8E6knUaQh0MY0Ot6M=";
  };

  postPatch = ''
    sed -i "/'sphinx',/d" setup.py
  '';

  nativeBuildInputs = [
    setuptools-git
    sphinx
  ];

  propagatedBuildInputs = [
    lxml
  ];

  pythonImportsCheck = [ "dbusdeviation" ];

  meta = with lib; {
    homepage = "https://tecnocode.co.uk/dbus-deviation/";
    description = "A project for parsing D-Bus introspection XML and processing it in various ways";
    license = licenses.lgpl21Plus;
    maintainers = with maintainers; [ lilyinstarlight ];
  };
}