Files
nixpkgs/pkgs/development/python-modules/dbus-python-client-gen/default.nix

44 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
into-dbus-python,
dbus-python,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "dbus-python-client-gen";
version = "0.8.5";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "stratis-storage";
repo = "dbus-python-client-gen";
tag = "v${finalAttrs.version}";
hash = "sha256-O1fx/u83bP/6rblEYE6KASlV7gzIYXWMbZm5erPxCbM=";
};
build-system = [ setuptools ];
dependencies = [
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${finalAttrs.version}/CHANGES.txt";
license = lib.licenses.mpl20;
maintainers = with lib.maintainers; [ nickcao ];
};
})