mimeo: migrate to pyproject = true, clean up installation

TomaSajt b29dc3a7 9c492c32

+8 -13
+8 -13
pkgs/by-name/mi/mimeo/package.nix
··· 12 12 python3Packages.buildPythonApplication { 13 13 pname = "mimeo"; 14 14 inherit version; 15 - format = "setuptools"; 15 + pyproject = true; 16 16 17 17 src = fetchurl { 18 18 url = "https://xyne.dev/projects/mimeo/src/mimeo-${version}.tar.xz"; 19 19 hash = "sha256-CahvSypwR1aHVDHTdtty1ZfaKBWPolxc73uZ5OyeqZA="; 20 20 }; 21 21 22 - buildInputs = [ 23 - file 24 - desktop-file-utils 25 - ]; 22 + build-system = [ python3Packages.setuptools ]; 26 23 27 - propagatedBuildInputs = [ python3Packages.pyxdg ]; 24 + dependencies = [ python3Packages.pyxdg ]; 28 25 29 - preConfigure = '' 26 + postPatch = '' 30 27 substituteInPlace Mimeo.py \ 31 - --replace "EXE_UPDATE_DESKTOP_DATABASE = 'update-desktop-database'" \ 32 - "EXE_UPDATE_DESKTOP_DATABASE = '${desktop-file-utils}/bin/update-desktop-database'" \ 33 - --replace "EXE_FILE = 'file'" \ 34 - "EXE_FILE = '${file}/bin/file'" 28 + --replace-fail "EXE_UPDATE_DESKTOP_DATABASE = 'update-desktop-database'" \ 29 + "EXE_UPDATE_DESKTOP_DATABASE = '${desktop-file-utils}/bin/update-desktop-database'" \ 30 + --replace-fail "EXE_FILE = 'file'" \ 31 + "EXE_FILE = '${file}/bin/file'" 35 32 ''; 36 - 37 - installPhase = "install -Dm755 Mimeo.py $out/bin/mimeo"; 38 33 39 34 doInstallCheck = true; 40 35 installCheckPhase = ''