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 { };