summary refs log tree commit diff
path: root/pkgs/applications/office
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2016-10-22 17:23:24 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2016-10-22 17:23:24 +0200
commite56832d7301f2be7c18abf12d151db00be88f6fa (patch)
tree8023c83da9db86e0a31535ad9b09e9f601c3b250 /pkgs/applications/office
parentbd12c109931951a36449edaa9c8ed3fc85dc6984 (diff)
parent8c465c5201e819486b3072be563738cc1801e8d7 (diff)
downloadnixlib-e56832d7301f2be7c18abf12d151db00be88f6fa.tar
nixlib-e56832d7301f2be7c18abf12d151db00be88f6fa.tar.gz
nixlib-e56832d7301f2be7c18abf12d151db00be88f6fa.tar.bz2
nixlib-e56832d7301f2be7c18abf12d151db00be88f6fa.tar.lz
nixlib-e56832d7301f2be7c18abf12d151db00be88f6fa.tar.xz
nixlib-e56832d7301f2be7c18abf12d151db00be88f6fa.tar.zst
nixlib-e56832d7301f2be7c18abf12d151db00be88f6fa.zip
Merge remote-tracking branch 'upstream/master' into HEAD
Diffstat (limited to 'pkgs/applications/office')
-rw-r--r--pkgs/applications/office/beancount/default.nix9
-rw-r--r--pkgs/applications/office/fava/default.nix45
-rw-r--r--pkgs/applications/office/homebank/default.nix9
-rw-r--r--pkgs/applications/office/marp/default.nix4
-rw-r--r--pkgs/applications/office/mmex/default.nix24
5 files changed, 65 insertions, 26 deletions
diff --git a/pkgs/applications/office/beancount/default.nix b/pkgs/applications/office/beancount/default.nix
index 77fcb8ce7e91..2034c832294f 100644
--- a/pkgs/applications/office/beancount/default.nix
+++ b/pkgs/applications/office/beancount/default.nix
@@ -1,14 +1,13 @@
 { stdenv, fetchhg, pkgs, pythonPackages }:
 
 pythonPackages.buildPythonApplication rec {
-  version = "2016-04-10-b5721f1c6f01bd168a5781652e5e3167f7f8ceb3";
+  version = "2.0b12";
   name = "beancount-${version}";
   namePrefix = "";
 
-  src = fetchhg {
-    url = "https://bitbucket.org/blais/beancount";
-    rev = "b5721f1c6f01bd168a5781652e5e3167f7f8ceb3";
-    sha256 = "10nv3p9cix7yp23a9hnq5163rpl8cfs3hv75h90ld57dc24nxzn2";
+  src = pkgs.fetchurl {
+    url = "mirror://pypi/b/beancount/${name}.tar.gz";
+    sha256 = "0n0wyi2yhmf8l46l5z68psk4rrzqkgqaqn93l0wnxsmp1nmqly9z";
   };
 
   buildInputs = with pythonPackages; [ nose ];
diff --git a/pkgs/applications/office/fava/default.nix b/pkgs/applications/office/fava/default.nix
new file mode 100644
index 000000000000..5ed7d25667ea
--- /dev/null
+++ b/pkgs/applications/office/fava/default.nix
@@ -0,0 +1,45 @@
+{ stdenv, pkgs, fetchurl, python3Packages, fetchFromGitHub, fetchzip, python3, beancount }:
+
+python3Packages.buildPythonApplication rec {
+  version = "1.0";
+  name = "fava-${version}";
+
+  src = fetchFromGitHub {
+    owner = "aumayr";
+    repo = "fava";
+    rev = "v${version}";
+    sha256 = "0dm4x6z80m04r9qa55psvz7f41qnh13hnj2qhvxkrk22yqmkqrka";
+  };
+
+  assets = fetchzip {
+    url = "https://github.com/aumayr/fava/releases/download/v${version}/beancount-fava-${version}.tar.gz";
+    sha256 = "1vvidwfn5882dslz6qqkkd84m7w52kd34x10qph8yhipyjv1dimc";
+  };
+
+  buildInputs = with python3Packages; [ pytest_30 ];
+
+  checkPhase = ''
+    # pyexcel is optional
+    # the other 2 tests fail due non-unicode locales
+    PATH=$out/bin:$PATH pytest tests \
+      --ignore tests/test_util_excel.py \
+      --ignore tests/test_cli.py \
+      --ignore tests/test_translations.py \
+  '';
+
+  postInstall = ''
+    cp -r $assets/fava/static/gen $out/${python3.sitePackages}/fava/static
+  '';
+
+  propagatedBuildInputs = with python3Packages;
+    [ flask dateutil pygments wheel markdown2 flaskbabel tornado
+      click beancount ];
+
+  meta = {
+    homepage = https://github.com/aumayr/fava;
+    description = "Web interface for beancount";
+    license = stdenv.lib.licenses.mit;
+    maintainers = with stdenv.lib.maintainers; [ matthiasbeyer ];
+  };
+}
+
diff --git a/pkgs/applications/office/homebank/default.nix b/pkgs/applications/office/homebank/default.nix
index b1eb4ddf021c..20ab6ce6f60e 100644
--- a/pkgs/applications/office/homebank/default.nix
+++ b/pkgs/applications/office/homebank/default.nix
@@ -1,9 +1,9 @@
 { fetchurl, stdenv, gtk, pkgconfig, libofx, intltool, wrapGAppsHook
-, hicolor_icon_theme}:
+, hicolor_icon_theme, libsoup}:
 
 let
    download_root = "http://homebank.free.fr/public/";
-   name = "homebank-5.0.6";
+   name = "homebank-5.1";
    lastrelease = download_root + name + ".tar.gz";
    oldrelease = download_root + "old/" + name + ".tar.gz";
 in
@@ -13,10 +13,11 @@ stdenv.mkDerivation {
 
   src = fetchurl {
     urls = [ lastrelease oldrelease ];
-    sha256 = "1r1rn8lgnqnlwkspx230gly5f4i90ij0a3ddrvw51kdc41xfylja";
+    sha256 = "1v6za6md5sjb1r3f5lc9k03v2q68cbx6g64vcn69666c42za2aq0";
   };
 
-  buildInputs = [ pkgconfig gtk libofx intltool hicolor_icon_theme wrapGAppsHook ];
+  buildInputs = [ pkgconfig gtk libofx intltool hicolor_icon_theme
+   wrapGAppsHook libsoup ];
 
   meta = {
     description = "Free, easy, personal accounting for everyone";
diff --git a/pkgs/applications/office/marp/default.nix b/pkgs/applications/office/marp/default.nix
index 7c95bcafec5c..9a59bef617b5 100644
--- a/pkgs/applications/office/marp/default.nix
+++ b/pkgs/applications/office/marp/default.nix
@@ -2,11 +2,11 @@
 
 stdenv.mkDerivation rec {
   name = "marp-${version}";
-  version = "0.0.8";
+  version = "0.0.9";
 
   src = fetchurl {
     url = "https://github.com/yhatt/marp/releases/download/v${version}/${version}-Marp-linux-x64.tar.gz";
-    sha256 = "0d7vvz34ik2jafwl3qjkdsvcva25gyrgrfg1gz1nk8f5dkl1wjcf";
+    sha256 = "142c35d88rkgjy85f4204givgx0p1qyfpipbrsa11lp3cb6jzhn2";
   };
   sourceRoot = ".";
 
diff --git a/pkgs/applications/office/mmex/default.nix b/pkgs/applications/office/mmex/default.nix
index c45eb7d53d0c..9e02377eaa53 100644
--- a/pkgs/applications/office/mmex/default.nix
+++ b/pkgs/applications/office/mmex/default.nix
@@ -1,16 +1,16 @@
-# To use this program, copy all that is in $out/opt/mmax into a writable directory,
-# and run it from there. This is the intended usage, as far as I understand.
+{ stdenv, fetchgit, sqlite, wxGTK30, gettext }:
 
-{ fetchsvn, stdenv, wxGTK }:
 
-let version = "0.9.5.1";
+let
+  version = "1.2.7";
 in
   stdenv.mkDerivation {
     name = "money-manager-ex-${version}";
 
-    src = fetchsvn {
-      url = "https://moneymanagerex.svn.sourceforge.net/svnroot/moneymanagerex/tags/releases/${version}";
-      sha256 = "0mby1p01fyxk5pgd7h3919q91r10zbfk16rfz1kbchqxqz87x4jq";
+    src = fetchgit {
+      url = "https://github.com/moneymanagerex/moneymanagerex.git";
+      rev = "refs/tags/v${version}";
+      sha256 = "0d6jcsj3m3b9mj68vfwr7dn67dws11p0pdys3spyyiv1464vmywi";
     };
 
     preConfigure = ''
@@ -18,19 +18,13 @@ in
       export CXXFLAGS="$CFLAGS"
     '';
 
-    installPhase = ''
-      mkdir -p $out/opt/mmex
-      cp -r mmex runtime/{*.txt,*.png,*.db3,en,help,*.wav,*.ico} $out/opt/mmex
-    '';
-
-    buildInputs = [ wxGTK ];
+    buildInputs = [ sqlite wxGTK30 gettext ];
 
     meta = {
       description = "Easy-to-use personal finance software";
-      homepage = http://www.codelathe.com/mmex;
+      homepage = http://www.moneymanagerex.org/;
       license = stdenv.lib.licenses.gpl2Plus;
       maintainers = with stdenv.lib.maintainers; [viric];
       platforms = with stdenv.lib.platforms; linux;
-      broken = true;
     };
   }