Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

68 lines
1.8 KiB
Nix

{
lib,
fetchFromGitHub,
nix-update-script,
python3Packages,
glib,
gtk3,
gobject-introspection,
wrapGAppsHook3,
}:
python3Packages.buildPythonPackage {
pname = "pick-colour-picker";
version = "1.5.0-unstable-2022-05-08";
pyproject = true;
src = fetchFromGitHub {
owner = "stuartlangridge";
repo = "ColourPicker";
rev = "e3e4c2bcec5d7285425582b92bb564c74be2cf77";
hash = "sha256-vW8mZiB3JFQtbOCWauhJGfZMlGsA/nNcljNNPtJtgGw=";
};
postPatch = ''
sed "s|sys\.prefix|'\.'|g" -i setup.py
sed "s|os.environ.get(\"SNAP\")|'$out'|g" -i pick/__main__.py
sed "s|os.environ.get('SNAP'), \"usr\"|'$out'|g" -i pick/__main__.py
'';
nativeBuildInputs = [
gobject-introspection
wrapGAppsHook3
];
build-system = with python3Packages; [ setuptools ];
pythonPath = with python3Packages; [
pygobject3
pycairo
];
buildInputs = [
glib
gtk3
];
pythonImportsCheck = [ "pick" ];
passthru.updateScript = nix-update-script {
extraArgs = [ "--version=branch" ];
};
meta = with lib; {
homepage = "https://kryogenix.org/code/pick/";
license = licenses.mit;
platforms = platforms.linux;
description = "Colour picker that remembers where you picked colours from";
mainProgram = "pick-colour-picker";
maintainers = [ maintainers.mkg20001 ];
longDescription = ''
Pick lets you pick colours from anywhere on your screen. Choose the colour you want and Pick remembers it, names it, and shows you a screenshot so you can remember where you got it from.
Zoom all the way in to pixels to pick just the right one. Show your colours in your choice of format: rgba() or hex, CSS or Gdk or Qt, whichever you prefer. Copy to the clipboard ready for pasting into code or graphics apps.
'';
};
}