2022-02-20 05:27:41 +00:00
|
|
|
{lib, python3Packages, gettext, qt5, fetchFromGitHub}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "dupeguru";
|
2022-02-20 05:27:41 +00:00
|
|
|
version = "4.1.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
format = "other";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "arsenetar";
|
|
|
|
repo = "dupeguru";
|
2020-11-03 02:18:15 +00:00
|
|
|
rev = version;
|
2022-02-20 05:27:41 +00:00
|
|
|
sha256 = "sha256-0lJocrNQHTrpslbPE6xjZDWhzza8cAt2js35LvicZKg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
|
|
|
python3Packages.pyqt5
|
|
|
|
qt5.wrapQtAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonPath = with python3Packages; [
|
|
|
|
pyqt5
|
2022-02-20 05:27:41 +00:00
|
|
|
pyqt5_sip
|
2020-04-24 23:36:52 +00:00
|
|
|
send2trash
|
|
|
|
sphinx
|
|
|
|
polib
|
|
|
|
hsaudiotag3k
|
|
|
|
];
|
|
|
|
|
|
|
|
makeFlags = [
|
2021-02-05 17:12:51 +00:00
|
|
|
"PREFIX=${placeholder "out"}"
|
2020-04-24 23:36:52 +00:00
|
|
|
"NO_VENV=1"
|
|
|
|
];
|
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
checkInputs = with python3Packages; [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
preCheck = ''
|
|
|
|
export HOME="$(mktemp -d)"
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Avoid double wrapping Python programs.
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2020-10-11 12:50:04 +00:00
|
|
|
# TODO: A bug in python wrapper
|
|
|
|
# see https://github.com/NixOS/nixpkgs/pull/75054#discussion_r357656916
|
2020-04-24 23:36:52 +00:00
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs="''${qtWrapperArgs[@]}"
|
|
|
|
'';
|
|
|
|
|
2020-10-11 12:50:04 +00:00
|
|
|
# Executable in $out/bin is a symlink to $out/share/dupeguru/run.py
|
|
|
|
# so wrapPythonPrograms hook does not handle it automatically.
|
2020-04-24 23:36:52 +00:00
|
|
|
postFixup = ''
|
|
|
|
wrapPythonProgramsIn "$out/share/dupeguru" "$out $pythonPath"
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "GUI tool to find duplicate files in a system";
|
|
|
|
homepage = "https://github.com/arsenetar/dupeguru";
|
|
|
|
license = licenses.bsd3;
|
2021-12-19 01:06:50 +00:00
|
|
|
platforms = platforms.unix;
|
2022-02-20 05:27:41 +00:00
|
|
|
maintainers = [ maintainers.novoxd ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|