summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/dbus-python-client-gen/default.nix
blob: 1c820eb8e02da7ce30dbcbef42c49de1d792115b (plain)
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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  into-dbus-python,
  dbus-python,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "dbus-python-client-gen";
  version = "0.8.3";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "stratis-storage";
    repo = "dbus-python-client-gen";
    tag = "v${version}";
    hash = "sha256-4Y4cL254ZlZKF6d6cStIOya3J4ZfypuumwKOdDNzuNc=";
  };

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

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "dbus_python_client_gen" ];

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