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-14 06:13:44 +00:00
|
|
|
version = "2.7.1";
|
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-14 06:13:44 +00:00
|
|
|
sha256 = "1m1shgnvwzzs0g6ph7rprwxd7w8zj0x4sbgiqsv9z41k6li7xj4r";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|