displaycal: init at 3.9.10

This commit is contained in:
Kranzes 2022-08-18 18:37:46 +03:00 committed by Ilan Joselevich
parent ff4c0a140b
commit 8e89e1cd8b
No known key found for this signature in database
3 changed files with 70 additions and 1 deletions

View file

@ -0,0 +1,68 @@
{ lib
, python3
, xorg
, argyllcms
, wrapGAppsHook
, gtk3
, librsvg
}:
python3.pkgs.buildPythonApplication rec {
pname = "displaycal";
version = "3.9.10";
format = "setuptools";
src = python3.pkgs.fetchPypi {
pname = "DisplayCAL";
inherit version;
hash = "sha256-oDHDVb0zuAC49yPfmNe7xuFKaA1BRZGr75XwsLqugHs=";
};
nativeBuildInputs = [
wrapGAppsHook
gtk3
];
propagatedBuildInputs = with python3.pkgs; [
build
certifi
wxPython_4_2
dbus-python
distro
PyChromecast
send2trash
];
buildInputs = [
gtk3
librsvg
] ++ (with xorg; [
libX11
libXxf86vm
libXext
libXinerama
libXrandr
]);
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 ];
};
}

View file

@ -371,7 +371,6 @@ mapAliases ({
digikam5 = throw "'digikam5' has been renamed to/replaced by 'digikam'"; # Converted to throw 2022-02-22
dirmngr = throw "dirmngr has been removed: merged into gnupg"; # Added 2022-05-13
disper = throw "disper has been removed: abandoned by upstream"; # Added 2022-03-18
displaycal = throw "displaycal has been removed from nixpkgs, as it hasn't migrated to python3"; # Added 2022-01-12
dmtx = throw "'dmtx' has been renamed to/replaced by 'dmtx-utils'"; # Converted to throw 2022-02-22
dnnl = oneDNN; # Added 2020-04-22
docbook5_xsl = throw "'docbook5_xsl' has been renamed to/replaced by 'docbook_xsl_ns'"; # Converted to throw 2022-02-22

View file

@ -25759,6 +25759,8 @@ with pkgs;
disk_indicator = callPackage ../os-specific/linux/disk-indicator { };
displaycal = callPackage ../applications/graphics/displaycal { };
displaylink = callPackage ../os-specific/linux/displaylink {
inherit (linuxPackages) evdi;
};