nixpkgs/pkgs/applications/misc/jrnl/default.nix

57 lines
1022 B
Nix
Raw Normal View History

{ lib
2021-02-11 18:48:36 +03:00
, ansiwrap
, asteval
, buildPythonApplication
, colorama
, cryptography
, fetchFromGitHub
, keyring
, parsedatetime
, poetry
, pytestCheckHook
, python-dateutil
, pytz
, pyxdg
, pyyaml
, tzlocal
}:
buildPythonApplication rec {
pname = "jrnl";
2021-03-30 02:20:41 +03:00
version = "2.8";
2021-02-11 18:48:36 +03:00
format = "pyproject";
2021-02-11 18:48:36 +03:00
src = fetchFromGitHub {
owner = "jrnl-org";
repo = pname;
rev = "v${version}";
2021-03-30 02:20:41 +03:00
sha256 = "1zpsvrjhami9y7204yjbdzi04bkkz6i3apda9fh3hbq83y6wzprz";
};
2021-02-11 18:48:36 +03:00
nativeBuildInputs = [ poetry ];
propagatedBuildInputs = [
2021-02-11 18:48:36 +03:00
ansiwrap
asteval
colorama
cryptography
keyring
parsedatetime
python-dateutil
pytz
pyxdg
pyyaml
tzlocal
];
2021-02-11 18:48:36 +03:00
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";
2021-02-11 18:48:36 +03:00
license = licenses.gpl3Only;
maintainers = with maintainers; [ zalakain ];
};
}