···1-{ stdenv, fetchurl, file, which, intltool, findutils, xdg_utils,
2- gnome3, pythonPackages, wrapGAppsHook }:
0034pythonPackages.buildPythonApplication rec {
5 majorver = "1.4";
6- minorver = "2";
7 version = "${majorver}.${minorver}";
8- name = "catfish-${version}";
910 src = fetchurl {
11- url = "https://launchpad.net/catfish-search/${majorver}/${version}/+download/${name}.tar.bz2";
12- sha256 = "0j3by9yfs4j9za3s5qdxrsm7idmps69pimc9d0mjyakvviy0izm3";
13 };
1415 nativeBuildInputs = [
···17 file
18 which
19 intltool
020 wrapGAppsHook
21 ];
22···26 pythonPackages.pyxdg
27 pythonPackages.ptyprocess
28 pythonPackages.pycairo
029 ];
3031 propagatedBuildInputs = [
···35 findutils
36 ];
3738- 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
46 '';
4700048 meta = with stdenv.lib; {
049 description = "A handy file search tool";
50 longDescription = ''
51 Catfish is a handy file searching tool. The interface is
···53 You can configure it to your needs by using several command line
54 options.
55 '';
56- homepage = https://launchpad.net/catfish-search;
57 license = licenses.gpl2Plus;
58 platforms = platforms.unix;
59 maintainers = [ maintainers.romildo ];
···1+{ stdenv, fetchurl, file, which, intltool, gobjectIntrospection,
2+ findutils, xdg_utils, gnome3, pythonPackages, hicolor_icon_theme,
3+ wrapGAppsHook
4+}:
56pythonPackages.buildPythonApplication rec {
7 majorver = "1.4";
8+ minorver = "4";
9 version = "${majorver}.${minorver}";
10+ pname = "catfish";
1112 src = fetchurl {
13+ url = "https://launchpad.net/catfish-search/${majorver}/${version}/+download/${pname}-${version}.tar.gz";
14+ sha256 = "1mw7py6si6y88jblmzm04hf049bpww7h87k2wypq07zm1dw55m52";
15 };
1617 nativeBuildInputs = [
···19 file
20 which
21 intltool
22+ gobjectIntrospection
23 wrapGAppsHook
24 ];
25···29 pythonPackages.pyxdg
30 pythonPackages.ptyprocess
31 pythonPackages.pycairo
32+ hicolor_icon_theme
33 ];
3435 propagatedBuildInputs = [
···39 findutils
40 ];
4142+ # 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
049 '';
5051+ # Disable check because there is no test in the source distribution
52+ doCheck = false;
53+54 meta = with stdenv.lib; {
55+ homepage = https://launchpad.net/catfish-search;
56 description = "A handy file search tool";
57 longDescription = ''
58 Catfish is a handy file searching tool. The interface is
···60 You can configure it to your needs by using several command line
61 options.
62 '';
063 license = licenses.gpl2Plus;
64 platforms = platforms.unix;
65 maintainers = [ maintainers.romildo ];