2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, buildPythonApplication, fetchFromGitHub, pyqt5, qt5, git-annex-adapter }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "git-annex-metadata-gui";
|
|
|
|
version = "0.2.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "alpernebbi";
|
|
|
|
repo = "git-annex-metadata-gui";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "03kch67k0q9lcs817906g864wwabkn208aiqvbiyqp1qbg99skam";
|
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace setup.py --replace "'PyQt5', " ""
|
|
|
|
'';
|
|
|
|
|
2020-10-11 12:50:04 +00:00
|
|
|
nativeBuildInputs = [ qt5.wrapQtAppsHook ];
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ pyqt5 git-annex-adapter ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/alpernebbi/git-annex-metadata-gui";
|
|
|
|
description = "Graphical interface for git-annex metadata commands";
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|