2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2021-02-11 15:48:36 +00:00
|
|
|
, ansiwrap
|
|
|
|
, asteval
|
|
|
|
, buildPythonApplication
|
|
|
|
, colorama
|
|
|
|
, cryptography
|
|
|
|
, fetchFromGitHub
|
|
|
|
, keyring
|
|
|
|
, parsedatetime
|
|
|
|
, poetry
|
|
|
|
, pytestCheckHook
|
|
|
|
, python-dateutil
|
|
|
|
, pytz
|
|
|
|
, pyxdg
|
|
|
|
, pyyaml
|
|
|
|
, tzlocal
|
2017-08-30 15:04:29 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "jrnl";
|
2021-03-30 00:20:41 +01:00
|
|
|
version = "2.8";
|
2021-02-11 15:48:36 +00:00
|
|
|
format = "pyproject";
|
2017-08-30 15:04:29 +01:00
|
|
|
|
2021-02-11 15:48:36 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jrnl-org";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-03-30 00:20:41 +01:00
|
|
|
sha256 = "1zpsvrjhami9y7204yjbdzi04bkkz6i3apda9fh3hbq83y6wzprz";
|
2017-08-30 15:04:29 +01:00
|
|
|
};
|
|
|
|
|
2021-02-11 15:48:36 +00:00
|
|
|
nativeBuildInputs = [ poetry ];
|
|
|
|
|
2017-08-30 15:04:29 +01:00
|
|
|
propagatedBuildInputs = [
|
2021-02-11 15:48:36 +00:00
|
|
|
ansiwrap
|
|
|
|
asteval
|
|
|
|
colorama
|
|
|
|
cryptography
|
|
|
|
keyring
|
|
|
|
parsedatetime
|
|
|
|
python-dateutil
|
|
|
|
pytz
|
|
|
|
pyxdg
|
|
|
|
pyyaml
|
|
|
|
tzlocal
|
2017-08-30 15:04:29 +01:00
|
|
|
];
|
|
|
|
|
2021-02-11 15:48:36 +00:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "jrnl" ];
|
2017-08-30 15:04:29 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://maebert.github.io/jrnl/";
|
2017-08-30 15:04:29 +01:00
|
|
|
description = "A simple command line journal application that stores your journal in a plain text file";
|
2021-02-11 15:48:36 +00:00
|
|
|
license = licenses.gpl3Only;
|
2017-08-30 15:04:29 +01:00
|
|
|
maintainers = with maintainers; [ zalakain ];
|
|
|
|
};
|
|
|
|
}
|