Adds a new package: cherrytree - A hierarchical note taking application
cherrytree - A hierarchical note taking application, featuring rich text and syntax highlighting, storing data in a single xml or sqlite file. This commit also adds PyGtkSourceView - a Python wrapper for the GtkSourceView widget library. Official page http://www.giuspen.com/cherrytree
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
{ stdenv, fetchurl, python, pythonPackages, gettext, pygtksourceview, sqlite }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "cherrytree-0.35.6";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.giuspen.com/software/${name}.tar.xz";
|
||||
sha256 = "1nfrnnwaxb07jf5c3id8zimr3q3rbhvzjlmpb99d41d7hqrd2bxj";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pythonPackages.sqlite3 ];
|
||||
|
||||
buildInputs = with pythonPackages; [ python gettext wrapPython pygtk dbus pygtksourceview ];
|
||||
|
||||
pythonPath = with pythonPackages; [ pygtk dbus pygtksourceview ];
|
||||
|
||||
patches = [ ./subprocess.patch ];
|
||||
|
||||
installPhase = ''
|
||||
python setup.py install --prefix="$out"
|
||||
|
||||
for file in "$out"/bin/*; do
|
||||
wrapProgram "$file" \
|
||||
--prefix PYTHONPATH : "$(toPythonPath $out):$PYTHONPATH"
|
||||
done
|
||||
'';
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
description = "A hierarchical note taking application, featuring rich text and syntax highlighting, storing data in a single xml or sqlite file";
|
||||
homepage = http://www.giuspen.com/cherrytree;
|
||||
license = stdenv.lib.licenses.gpl3;
|
||||
platforms = with stdenv.lib.platforms; linux;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
diff -Naur cherrytree-0.35.6-orig/setup.py cherrytree-0.35.6/setup.py
|
||||
--- cherrytree-0.35.6-orig/setup.py 2014-05-30 23:25:11.000000000 +0200
|
||||
+++ cherrytree-0.35.6/setup.py 2015-01-29 07:35:32.785904009 +0100
|
||||
@@ -205,4 +205,9 @@
|
||||
},
|
||||
distclass=CherryTreeDist
|
||||
)
|
||||
- subprocess.call("update-desktop-database")
|
||||
+ try:
|
||||
+ subprocess.check_call(['update-desktop-database'])
|
||||
+ except subprocess.CalledProcessError:
|
||||
+ pass # handle errors in the called executable
|
||||
+ except OSError:
|
||||
+ pass # executable not found
|
||||
|
||||
Reference in New Issue
Block a user