1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pyparsing,
6 pytestCheckHook,
7 hypothesis,
8 hs-dbus-signature,
9}:
10
11buildPythonPackage rec {
12 pname = "dbus-signature-pyparsing";
13 version = "0.4.1";
14 format = "setuptools";
15
16 src = fetchFromGitHub {
17 owner = "stratis-storage";
18 repo = "dbus-signature-pyparsing";
19 rev = "v${version}";
20 hash = "sha256-+jY8kg3jBDpZr5doih3DiyUEcSskq7TgubmW3qdBoZM=";
21 };
22
23 propagatedBuildInputs = [ pyparsing ];
24 nativeCheckInputs = [
25 pytestCheckHook
26 hypothesis
27 hs-dbus-signature
28 ];
29
30 pythonImportsCheck = [ "dbus_signature_pyparsing" ];
31
32 meta = with lib; {
33 description = "Parser for a D-Bus Signature";
34 homepage = "https://github.com/stratis-storage/dbus-signature-pyparsing";
35 license = licenses.asl20;
36 maintainers = with maintainers; [ nickcao ];
37 };
38}