nixpkgs-suyu/pkgs/by-name/di/displaycal/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

76 lines
1.4 KiB
Nix
Raw Normal View History

2022-08-18 17:37:46 +02:00
{ lib
, python3
, fetchPypi
2022-08-18 17:37:46 +02:00
, wrapGAppsHook
, gtk3
, librsvg
, xorg
, argyllcms
2022-08-18 17:37:46 +02:00
}:
python3.pkgs.buildPythonApplication rec {
pname = "displaycal";
2024-03-20 11:05:55 +01:00
version = "3.9.12";
2022-08-18 17:37:46 +02:00
format = "setuptools";
src = fetchPypi {
2022-08-18 17:37:46 +02:00
pname = "DisplayCAL";
inherit version;
2024-03-20 11:05:55 +01:00
hash = "sha256-0NZ+fr3ilnyWE6+Xa8xqpccNe7WVvvQfQEYvdQ8rf/Q=";
2022-08-18 17:37:46 +02:00
};
nativeBuildInputs = [
wrapGAppsHook
gtk3
];
propagatedBuildInputs = with python3.pkgs; [
build
certifi
wxpython
2022-08-18 17:37:46 +02:00
dbus-python
distro
numpy
pillow
pychromecast
2022-08-18 17:37:46 +02:00
send2trash
zeroconf
2022-08-18 17:37:46 +02:00
];
buildInputs = [
gtk3
librsvg
] ++ (with xorg; [
libX11
libXxf86vm
libXext
libXinerama
libXrandr
]);
# Workaround for eoyilmaz/displaycal-py3#261
setupPyGlobalFlags = [ "appdata" ];
2022-08-18 17:37:46 +02:00
doCheck = false; # Tests try to access an X11 session and dbus in weird locations.
pythonImportsCheck = [ "DisplayCAL" ];
dontWrapGApps = true;
preFixup = ''
makeWrapperArgs+=(
''${gappsWrapperArgs[@]}
--prefix PATH : ${lib.makeBinPath [ argyllcms ]}
--prefix PYTHONPATH : $PYTHONPATH
)
'';
meta = with lib; {
description = "Display calibration and characterization powered by Argyll CMS (Migrated to Python 3)";
homepage = "https://github.com/eoyilmaz/displaycal-py3";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ toastal ];
};
}