Installing kde-material-you-colors with pipx fails

Hey, I want to install material-you-colors via pipx, but the installation always fails and I am not able to fix it by myself. Any ideas? Thx!

pipx install kde-material-you-colors                                                                            
Fatal error from pip prevented installation. Full pip output in file:  
   /home/simon/.local/pipx/logs/cmd_2023-10-08_13.49.01_pip_errors.log  
  
pip seemed to fail to build package:  
   dbus-python>=1.3.2  
  
Some possibly relevant errors from pip install:  
   error: subprocess-exited-with-error  
   ../subprojects/dbus-gmain/meson.build:107:11: ERROR: Dependency "dbus-1" not found, tried pkgconfig and cmake  
   error: metadata-generation-failed  
  
Error installing kde-material-you-colors.

cmd_2023-10-08_13.49.01_pip_errors.log :

PIP STDOUT
----------
Collecting kde-material-you-colors
  Obtaining dependency information for kde-material-you-colors from https://files.pythonhosted.org/packages/f0/a9/a5731865975a65e839729f60958d9d6a5c421710c6cd83532ec2bd9420fe/kde_material_you_colors-1.6.0-py3-none-any.whl.metadata
  Using cached kde_material_you_colors-1.6.0-py3-none-any.whl.metadata (9.0 kB)
Collecting dbus-python>=1.3.2 (from kde-material-you-colors)
  Using cached dbus-python-1.3.2.tar.gz (605 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'error'

PIP STDERR
----------
  error: subprocess-exited-with-error
  
  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [93 lines of output]
      + meson setup /tmp/pip-install-go1fyevx/dbus-python_1ed0e5c3e2a744309f5919e095cb4ac3 /tmp/pip-install-go1fyevx/dbus-python_1ed0e5c3e2a744309f5919e095cb4ac3/.mesonpy-o71a_yfx -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/tmp/pip-install-go1fyevx/dbus-python_1ed0e5c3e2a744309f5919e095cb4ac3/.mesonpy-o71a_yfx/meson-python-native-file.ini
      The Meson build system
      Version: 1.2.2
      Source dir: /tmp/pip-install-go1fyevx/dbus-python_1ed0e5c3e2a744309f5919e095cb4ac3
      Build dir: /tmp/pip-install-go1fyevx/dbus-python_1ed0e5c3e2a744309f5919e095cb4ac3/.mesonpy-o71a_yfx
      Build type: native build
      Project name: dbus-python
      Project version: 1.3.2
      C compiler for the host machine: cc (clang 11.1.0 "clang version 11.1.0")
      C linker for the host machine: cc ld.bfd 2.40
      Host machine cpu family: x86_64
      Host machine cpu: x86_64
      Compiler for C supports arguments -fno-common: YES
      Compiler for C supports arguments -Wno-missing-field-initializers: YES
      Compiler for C supports arguments -Wno-declaration-after-statement: YES
      Compiler for C supports arguments -Wno-inline: YES
      Compiler for C supports arguments -Wno-redundant-decls: YES
      Compiler for C supports arguments -Wno-switch-default: YES
      Compiler for C supports arguments -Wno-write-strings: YES
      Compiler for C supports arguments -Wcast-align: YES
      Compiler for C supports arguments -Wdouble-promotion: YES
      Compiler for C supports arguments -Wduplicated-cond: NO
      Compiler for C supports arguments -Wfloat-equal: YES
      Compiler for C supports arguments -Wformat-nonliteral: YES
      Compiler for C supports arguments -Wformat-security: YES
      Compiler for C supports arguments -Wformat=2: YES
      Compiler for C supports arguments -Winit-self: YES
      Compiler for C supports arguments -Wlogical-op: NO
      Compiler for C supports arguments -Wmissing-declarations: YES
      Compiler for C supports arguments -Wmissing-format-attribute: YES
      Compiler for C supports arguments -Wmissing-include-dirs: YES
      Compiler for C supports arguments -Wmissing-noreturn: YES
      Compiler for C supports arguments -Wnull-dereference: YES
      Compiler for C supports arguments -Wpacked: YES
      Compiler for C supports arguments -Wpointer-arith: YES
      Compiler for C supports arguments -Wshadow: YES
      Compiler for C supports arguments -Wswitch-enum: YES
      Compiler for C supports arguments -Wundef: YES
      Compiler for C supports arguments -Wunused-but-set-variable: NO
      Compiler for C supports arguments -Wjump-misses-init: NO
      Compiler for C supports arguments -Wmissing-prototypes: YES
      Compiler for C supports arguments -Wnested-externs: YES
      Compiler for C supports arguments -Wold-style-definition: YES
      Compiler for C supports arguments -Wpointer-sign: YES
      Compiler for C supports arguments -Wstrict-prototypes: YES
      Configuring _dbus-python-config.h using configuration
      
      Executing subproject dbus-gmain
      
      dbus-gmain| Project name: dbus-gmain
      dbus-gmain| Project version: undefined
      dbus-gmain| C compiler for the host machine: cc (clang 11.1.0 "clang version 11.1.0")
      dbus-gmain| C linker for the host machine: cc ld.bfd 2.40
      dbus-gmain| Compiler for C supports arguments -fno-common: YES (cached)
      dbus-gmain| Compiler for C supports arguments -Wno-missing-field-initializers: YES (cached)
      dbus-gmain| Compiler for C supports arguments -Wcast-align: YES (cached)
      dbus-gmain| Compiler for C supports arguments -Wdouble-promotion: YES (cached)
      dbus-gmain| Compiler for C supports arguments -Wduplicated-branches: NO
      dbus-gmain| Compiler for C supports arguments -Wduplicated-cond: NO (cached)
      dbus-gmain| Compiler for C supports arguments -Wfloat-equal: YES (cached)
      dbus-gmain| Compiler for C supports arguments -Wformat-nonliteral: YES (cached)
      dbus-gmain| Compiler for C supports arguments -Wformat-security: YES (cached)
      dbus-gmain| Compiler for C supports arguments -Wformat=2: YES (cached)
      dbus-gmain| Compiler for C supports arguments -Winit-self: YES (cached)
      dbus-gmain| Compiler for C supports arguments -Wlogical-op: NO (cached)
      dbus-gmain| Compiler for C supports arguments -Wmissing-declarations: YES (cached)
      dbus-gmain| Compiler for C supports arguments -Wmissing-format-attribute: YES (cached)
      dbus-gmain| Compiler for C supports arguments -Wmissing-include-dirs: YES (cached)
      dbus-gmain| Compiler for C supports arguments -Wmissing-noreturn: YES (cached)
      dbus-gmain| Compiler for C supports arguments -Wnull-dereference: YES (cached)
      dbus-gmain| Compiler for C supports arguments -Wpacked: YES (cached)
      dbus-gmain| Compiler for C supports arguments -Wpointer-arith: YES (cached)
      dbus-gmain| Compiler for C supports arguments -Wredundant-decls: YES
      dbus-gmain| Compiler for C supports arguments -Wshadow: YES (cached)
      dbus-gmain| Compiler for C supports arguments -Wswitch-default: YES
      dbus-gmain| Compiler for C supports arguments -Wswitch-enum: YES (cached)
      dbus-gmain| Compiler for C supports arguments -Wundef: YES (cached)
      dbus-gmain| Compiler for C supports arguments -Wunused-but-set-variable: NO (cached)
      dbus-gmain| Compiler for C supports arguments -Wwrite-strings: YES
      dbus-gmain| Compiler for C supports arguments -Wdeclaration-after-statement: YES
      dbus-gmain| Compiler for C supports arguments -Wjump-misses-init: NO (cached)
      dbus-gmain| Compiler for C supports arguments -Wmissing-prototypes: YES (cached)
      dbus-gmain| Compiler for C supports arguments -Wnested-externs: YES (cached)
      dbus-gmain| Compiler for C supports arguments -Wold-style-definition: YES (cached)
      dbus-gmain| Compiler for C supports arguments -Wpointer-sign: YES (cached)
      dbus-gmain| Compiler for C supports arguments -Wstrict-prototypes: YES (cached)
      dbus-gmain| Found pkg-config: /run/current-system/sw/bin/pkg-config (0.29.2)
      dbus-gmain| Found CMake: /run/current-system/sw/bin/cmake (3.26.4)
      dbus-gmain| Run-time dependency dbus-1 found: NO (tried pkgconfig and cmake)
      
      ../subprojects/dbus-gmain/meson.build:107:11: ERROR: Dependency "dbus-1" not found, tried pkgconfig and cmake
      
      A full log can be found at /tmp/pip-install-go1fyevx/dbus-python_1ed0e5c3e2a744309f5919e095cb4ac3/.mesonpy-o71a_yfx/meson-logs/meson-log.txt
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Although Pipx, pip, and other python package managers are packaged in Nixpkgs, usually these sort of installations are not working in NixOS, and are not recommended / supported. Especially for this kind of purpose, installing icons / colors for your desktop environment it is recommended to do it decoratively.

To do that, the first thing you should do is to start adding this package to Nixpkgs, and before opening a PR, observe what files you get in the package, and which of them do you need for the KDE module system to use for this to work.

1 Like