1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, dbus-signature-pyparsing
5, dbus-python
6, pytestCheckHook
7, hypothesis
8, hs-dbus-signature
9}:
10
11buildPythonPackage rec {
12 pname = "into-dbus-python";
13 version = "0.8.2";
14
15 src = fetchFromGitHub {
16 owner = "stratis-storage";
17 repo = pname;
18 rev = "v${version}";
19 hash = "sha256-Ld/DyhVaDiWUXgqmvSmEHqFW2dcoRNM0O4X5DXE3UtM=";
20 };
21
22 propagatedBuildInputs = [
23 dbus-signature-pyparsing
24 dbus-python
25 ];
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 hypothesis
30 hs-dbus-signature
31 ];
32
33 pythonImportsCheck = [ "into_dbus_python" ];
34
35 meta = with lib; {
36 description = "A transformer to dbus-python types";
37 homepage = "https://github.com/stratis-storage/into-dbus-python";
38 license = licenses.asl20;
39 maintainers = with maintainers; [ nickcao ];
40 };
41}