Help packaging displaycal

I’m still trying to get displaycal to build, but I’m out of my depths. I’ve rebased this on both master and nixos-unstable, but it doesn’t matter, the error is the same.

The build error: Traceback (most recent call last): File "/build/source/nix_run_setup", line 8 - Pastebin.com

and package attempt: https://github.com/paperdigits/nixpkgs/commit/723c2aa9e2a7907deaeead58b36d963ddc41d9dd

the source repo: GitHub - eoyilmaz/displaycal-py3: DisplayCAL Modernization Project

This builds for me and I was able to start, though its quite the crowbar method… I am sure there are better ways, that only disable the tests that actually are problematic.

Here we have the problem that at least one test tries to access the DBUS, which is not available within the build sandbox.

diff --git a/pkgs/applications/graphics/displaycal/default.nix b/pkgs/applications/graphics/displaycal/default.nix
index 43eb910d736..918c2af34a7 100644
--- a/pkgs/applications/graphics/displaycal/default.nix
+++ b/pkgs/applications/graphics/displaycal/default.nix
@@ -59,6 +59,8 @@ buildPythonApplication rec {
   # 2022-12-19 Don't need
   # pythonImportsCheck = [ "displaycal.py3" ];
 
+  dontUseSetuptoolsCheck = true;
+
   meta = with lib; {
     description = "DisplayCAL Modernization Project";
     homepage = "https://github.com/eoyilmaz/displaycal-py3";
1 Like

Of course the package was merged like 10 hours after I asked this… Thanks!

1 Like