Files
nixpkgs/pkgs/development/python-modules/dbus-python-client-gen/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

42 lines
986 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
into-dbus-python,
dbus-python,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "dbus-python-client-gen";
version = "0.8.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "stratis-storage";
repo = "dbus-python-client-gen";
tag = "v${version}";
hash = "sha256-4Y4cL254ZlZKF6d6cStIOya3J4ZfypuumwKOdDNzuNc=";
};
propagatedBuildInputs = [
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${version}/CHANGES.txt";
license = lib.licenses.mpl20;
maintainers = with lib.maintainers; [ nickcao ];
};
}