2024-01-16 19:46:23 +00:00
|
|
|
{ stdenv, lib, python3Packages, gettext, qt5, fetchFromGitHub }:
|
2019-12-13 15:26:17 +00:00
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "dupeguru";
|
2024-01-16 19:46:23 +00:00
|
|
|
version = "4.3.1";
|
2019-12-13 15:26:17 +00:00
|
|
|
|
|
|
|
format = "other";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "arsenetar";
|
|
|
|
repo = "dupeguru";
|
2020-11-01 22:39:49 +00:00
|
|
|
rev = version;
|
2024-01-16 19:46:23 +00:00
|
|
|
hash = "sha256-/jkZiCapmCLMp7WfgUmpsR8aNCfb3gBELlMYaC4e7zI=";
|
2019-12-13 15:26:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
|
|
|
python3Packages.pyqt5
|
2024-01-16 19:46:23 +00:00
|
|
|
python3Packages.setuptools
|
2019-12-13 15:26:17 +00:00
|
|
|
qt5.wrapQtAppsHook
|
|
|
|
];
|
|
|
|
|
2024-01-16 19:46:23 +00:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
hsaudiotag3k
|
|
|
|
mutagen
|
|
|
|
polib
|
2019-12-13 15:26:17 +00:00
|
|
|
pyqt5
|
2024-01-07 15:09:05 +00:00
|
|
|
pyqt5-sip
|
2024-01-16 19:46:23 +00:00
|
|
|
semantic-version
|
2019-12-13 15:26:17 +00:00
|
|
|
send2trash
|
|
|
|
sphinx
|
|
|
|
];
|
|
|
|
|
|
|
|
makeFlags = [
|
2021-01-24 09:19:10 +00:00
|
|
|
"PREFIX=${placeholder "out"}"
|
2019-12-13 15:26:17 +00:00
|
|
|
"NO_VENV=1"
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = with python3Packages; [
|
2022-02-15 06:07:34 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2024-01-16 19:46:23 +00:00
|
|
|
|
2022-02-15 06:07:34 +00:00
|
|
|
preCheck = ''
|
|
|
|
export HOME="$(mktemp -d)"
|
|
|
|
'';
|
2019-12-13 15:26:17 +00:00
|
|
|
|
|
|
|
# Avoid double wrapping Python programs.
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2020-10-08 11:52:22 +00:00
|
|
|
# TODO: A bug in python wrapper
|
|
|
|
# see https://github.com/NixOS/nixpkgs/pull/75054#discussion_r357656916
|
2019-12-13 15:26:17 +00:00
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs="''${qtWrapperArgs[@]}"
|
|
|
|
'';
|
|
|
|
|
2020-10-08 11:52:22 +00:00
|
|
|
# Executable in $out/bin is a symlink to $out/share/dupeguru/run.py
|
|
|
|
# so wrapPythonPrograms hook does not handle it automatically.
|
2019-12-13 15:26:17 +00:00
|
|
|
postFixup = ''
|
|
|
|
wrapPythonProgramsIn "$out/share/dupeguru" "$out $pythonPath"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2022-05-28 13:28:44 +00:00
|
|
|
broken = stdenv.hostPlatform.isDarwin;
|
2019-12-13 15:26:17 +00:00
|
|
|
description = "GUI tool to find duplicate files in a system";
|
|
|
|
homepage = "https://github.com/arsenetar/dupeguru";
|
|
|
|
license = licenses.bsd3;
|
2021-12-11 21:00:35 +00:00
|
|
|
platforms = platforms.unix;
|
2024-01-16 19:46:23 +00:00
|
|
|
maintainers = with maintainers; [ novoxd ];
|
2023-08-04 19:10:05 +00:00
|
|
|
mainProgram = "dupeguru";
|
2019-12-13 15:26:17 +00:00
|
|
|
};
|
|
|
|
}
|