nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 48 lines 1.0 kB view raw
1{ 2 lib, 3 buildPythonApplication, 4 fetchFromGitHub, 5 pyqt5, 6 qt5, 7 git-annex-adapter, 8}: 9 10buildPythonApplication rec { 11 pname = "git-annex-metadata-gui"; 12 version = "0.2.0"; 13 format = "setuptools"; 14 15 src = fetchFromGitHub { 16 owner = "alpernebbi"; 17 repo = "git-annex-metadata-gui"; 18 rev = "v${version}"; 19 sha256 = "03kch67k0q9lcs817906g864wwabkn208aiqvbiyqp1qbg99skam"; 20 }; 21 22 prePatch = '' 23 substituteInPlace setup.py --replace "'PyQt5', " "" 24 ''; 25 26 nativeBuildInputs = [ qt5.wrapQtAppsHook ]; 27 28 preFixup = '' 29 makeWrapperArgs+=("''${qtWrapperArgs[@]}") 30 ''; 31 32 propagatedBuildInputs = [ 33 pyqt5 34 git-annex-adapter 35 ]; 36 37 meta = with lib; { 38 homepage = "https://github.com/alpernebbi/git-annex-metadata-gui"; 39 description = "Graphical interface for git-annex metadata commands"; 40 mainProgram = "git-annex-metadata-gui"; 41 maintainers = with maintainers; [ 42 dotlambda 43 matthiasbeyer 44 ]; 45 license = licenses.gpl3Plus; 46 platforms = with platforms; linux; 47 }; 48}