From 91dee8a4562c62e7af4f612c4d1106193a8d01e0 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Mon, 1 Aug 2022 23:41:00 +0800 Subject: [PATCH] python3Packages.dbus-python-client-gen: init at 0.8 --- .../dbus-python-client-gen/default.nix | 34 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/development/python-modules/dbus-python-client-gen/default.nix diff --git a/pkgs/development/python-modules/dbus-python-client-gen/default.nix b/pkgs/development/python-modules/dbus-python-client-gen/default.nix new file mode 100644 index 000000000000..100144c152e4 --- /dev/null +++ b/pkgs/development/python-modules/dbus-python-client-gen/default.nix @@ -0,0 +1,34 @@ +{ 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 + ]; + + 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e56dd1762cf1..dd5c978f7d07 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2299,6 +2299,8 @@ in { inherit (pkgs) dbus; }; + dbus-python-client-gen = callPackage ../development/python-modules/dbus-python-client-gen { }; + dbus-signature-pyparsing = callPackage ../development/python-modules/dbus-signature-pyparsing { }; dbutils = callPackage ../development/python-modules/dbutils { };