summary refs log blame commit diff
path: root/pkgs/applications/misc/jrnl/default.nix
blob: 37142cd20eb565610a0b1d9e41de9bda42bf07f8 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
     














                        

  

                            
                  
                       
 



                         
                                                                    

    

                                 
                           










                   

    

                                    
 
                    
                                                
                                                                                                            
                                


                                                 
{ lib
, ansiwrap
, asteval
, buildPythonApplication
, colorama
, cryptography
, fetchFromGitHub
, keyring
, parsedatetime
, poetry
, pytestCheckHook
, python-dateutil
, pytz
, pyxdg
, pyyaml
, tzlocal
}:

buildPythonApplication rec {
  pname = "jrnl";
  version = "2.8";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "jrnl-org";
    repo = pname;
    rev = "v${version}";
    sha256 = "1zpsvrjhami9y7204yjbdzi04bkkz6i3apda9fh3hbq83y6wzprz";
  };

  nativeBuildInputs = [ poetry ];

  propagatedBuildInputs = [
    ansiwrap
    asteval
    colorama
    cryptography
    keyring
    parsedatetime
    python-dateutil
    pytz
    pyxdg
    pyyaml
    tzlocal
  ];

  checkInputs = [ pytestCheckHook ];
  pythonImportsCheck = [ "jrnl" ];

  meta = with lib; {
    homepage = "http://maebert.github.io/jrnl/";
    description = "A simple command line journal application that stores your journal in a plain text file";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ zalakain ];
  };
}