summary refs log blame commit diff
path: root/pkgs/applications/office/fava/default.nix
blob: 8e1bb0d76d925f9f88193a716d5ebe2c34996dc5 (plain) (tree)
1
2
3
4
5
6
7
8
9
                               
 




                                                          
                   
 

                          
                                                                    

    
                                        
                                            










                
              
                      
      
 




                                                                   
          
                                                  

                                                
                                                                 

    
{ stdenv, python3, beancount }:

let
  inherit (python3.pkgs) buildPythonApplication fetchPypi;
in
buildPythonApplication rec {
  pname = "fava";
  version = "1.14";

  src = fetchPypi {
    inherit pname version;
    sha256 = "181ypq2p7aaq2b76s55hxxbm1hykzf45mjjgm500h4dsaa167dqy";
  };

  checkInputs = [ python3.pkgs.pytest ];
  propagatedBuildInputs = with python3.pkgs;
    [ 
      Babel
      cheroot
      flaskbabel
      flask
      jinja2
      beancount
      click
      markdown2
      ply
      simplejson
      werkzeug
      jaraco_functools
    ];

  # CLI test expects fava on $PATH.  Not sure why static_url fails.
  checkPhase = ''
    py.test tests -k 'not cli and not static_url'
  '';

  meta = {
    homepage = "https://beancount.github.io/fava";
    description = "Web interface for beancount";
    license = stdenv.lib.licenses.mit;
    maintainers = with stdenv.lib.maintainers; [ matthiasbeyer ];
  };
}