2021-01-25 11:26:54 +03:00
|
|
|
{ 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
|
2017-08-30 17:04:29 +03:00
|
|
|
}:
|
|
|
|
|
|
|
|
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";
|
2017-08-30 17:04:29 +03:00
|
|
|
|
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";
|
2017-08-30 17:04:29 +03:00
|
|
|
};
|
|
|
|
|
2021-02-11 18:48:36 +03:00
|
|
|
nativeBuildInputs = [ poetry ];
|
|
|
|
|
2017-08-30 17:04:29 +03:00
|
|
|
propagatedBuildInputs = [
|
2021-02-11 18:48:36 +03:00
|
|
|
ansiwrap
|
|
|
|
asteval
|
|
|
|
colorama
|
|
|
|
cryptography
|
|
|
|
keyring
|
|
|
|
parsedatetime
|
|
|
|
python-dateutil
|
|
|
|
pytz
|
|
|
|
pyxdg
|
|
|
|
pyyaml
|
|
|
|
tzlocal
|
2017-08-30 17:04:29 +03:00
|
|
|
];
|
|
|
|
|
2021-02-11 18:48:36 +03:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "jrnl" ];
|
2017-08-30 17:04:29 +03:00
|
|
|
|
2021-01-11 10:54:33 +03:00
|
|
|
meta = with lib; {
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "http://maebert.github.io/jrnl/";
|
2017-08-30 17:04:29 +03:00
|
|
|
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;
|
2017-08-30 17:04:29 +03:00
|
|
|
maintainers = with maintainers; [ zalakain ];
|
|
|
|
};
|
|
|
|
}
|