summary refs log tree commit diff
path: root/pkgs/development/python-modules/dbus-python-client-gen/default.nix
blob: 02b973d145ce699ec6943d5f1b394a77f2eb30c4 (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
{ lib
, buildPythonPackage
, fetchFromGitHub
, into-dbus-python
, dbus-python
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "dbus-python-client-gen";
  version = "0.8";

  src = fetchFromGitHub {
    owner = "stratis-storage";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-nSzxT65WHBVct5pGHmIAHJXftd0tKZeK/argN+V9xcs=";
  };

  propagatedBuildInputs = [
    into-dbus-python
    dbus-python
  ];

  checkInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [ "dbus_python_client_gen" ];

  meta = with lib; {
    description = "A Python library for generating dbus-python client code";
    homepage = "https://github.com/stratis-storage/dbus-python-client-gen";
    license = licenses.mpl20;
    maintainers = with maintainers; [ nickcao ];
  };
}