Merge pull request #34899 from romildo/upd.catfish

catfish: 1.4.2 -> 1.4.4

authored by Samuel Leathers and committed by GitHub ac8a149e 711f799a

+22 -18
+21 -15
pkgs/applications/search/catfish/default.nix
··· 1 - { stdenv, fetchurl, file, which, intltool, findutils, xdg_utils, 2 - gnome3, pythonPackages, wrapGAppsHook }: 1 + { stdenv, fetchurl, file, which, intltool, gobjectIntrospection, 2 + findutils, xdg_utils, gnome3, pythonPackages, hicolor_icon_theme, 3 + wrapGAppsHook 4 + }: 3 5 4 6 pythonPackages.buildPythonApplication rec { 5 7 majorver = "1.4"; 6 - minorver = "2"; 8 + minorver = "4"; 7 9 version = "${majorver}.${minorver}"; 8 - name = "catfish-${version}"; 10 + pname = "catfish"; 9 11 10 12 src = fetchurl { 11 - url = "https://launchpad.net/catfish-search/${majorver}/${version}/+download/${name}.tar.bz2"; 12 - sha256 = "0j3by9yfs4j9za3s5qdxrsm7idmps69pimc9d0mjyakvviy0izm3"; 13 + url = "https://launchpad.net/catfish-search/${majorver}/${version}/+download/${pname}-${version}.tar.gz"; 14 + sha256 = "1mw7py6si6y88jblmzm04hf049bpww7h87k2wypq07zm1dw55m52"; 13 15 }; 14 16 15 17 nativeBuildInputs = [ ··· 17 19 file 18 20 which 19 21 intltool 22 + gobjectIntrospection 20 23 wrapGAppsHook 21 24 ]; 22 25 ··· 26 29 pythonPackages.pyxdg 27 30 pythonPackages.ptyprocess 28 31 pythonPackages.pycairo 32 + hicolor_icon_theme 29 33 ]; 30 34 31 35 propagatedBuildInputs = [ ··· 35 39 findutils 36 40 ]; 37 41 38 - preFixup = '' 39 - rm "$out/${pythonPackages.python.sitePackages}/catfish_lib/catfishconfig.pyc" 40 - for f in \ 41 - "$out/${pythonPackages.python.sitePackages}/catfish_lib/catfishconfig.py" \ 42 - "$out/share/applications/catfish.desktop" 43 - do 44 - substituteInPlace $f --replace "${pythonPackages.python}" "$out" 45 - done 42 + # Explicitly set the prefix dir in "setup.py" because setuptools is 43 + # not using "$out" as the prefix when installing catfish data. In 44 + # particular the variable "__catfish_data_directory__" in 45 + # "catfishconfig.py" is being set to a subdirectory in the python 46 + # path in the store. 47 + postPatch = '' 48 + sed -i "/^ if self.root/i\\ self.prefix = \"$out\"" setup.py 46 49 ''; 47 50 51 + # Disable check because there is no test in the source distribution 52 + doCheck = false; 53 + 48 54 meta = with stdenv.lib; { 55 + homepage = https://launchpad.net/catfish-search; 49 56 description = "A handy file search tool"; 50 57 longDescription = '' 51 58 Catfish is a handy file searching tool. The interface is ··· 53 60 You can configure it to your needs by using several command line 54 61 options. 55 62 ''; 56 - homepage = https://launchpad.net/catfish-search; 57 63 license = licenses.gpl2Plus; 58 64 platforms = platforms.unix; 59 65 maintainers = [ maintainers.romildo ];
+1 -3
pkgs/top-level/all-packages.nix
··· 14549 14549 14550 14550 carddav-util = callPackage ../tools/networking/carddav-util { }; 14551 14551 14552 - catfish = callPackage ../applications/search/catfish { 14553 - pythonPackages = python2Packages; 14554 - }; 14552 + catfish = callPackage ../applications/search/catfish { }; 14555 14553 14556 14554 cava = callPackage ../applications/audio/cava { }; 14557 14555