2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2021-02-13 14:23:35 +00:00
|
|
|
, fetchFromGitHub
|
2021-10-28 06:52:43 +00:00
|
|
|
, python3
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "jrnl";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "4.0.1";
|
2021-02-13 14:23:35 +00:00
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jrnl-org";
|
|
|
|
repo = pname;
|
2023-02-02 18:25:31 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-NpI19NQxfDiqcfFI9kMqfMboI4fQTqCG7AoG9o8YoEI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
|
|
poetry-core
|
|
|
|
];
|
2021-02-13 14:23:35 +00:00
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2021-02-13 14:23:35 +00:00
|
|
|
ansiwrap
|
|
|
|
asteval
|
|
|
|
colorama
|
|
|
|
cryptography
|
|
|
|
keyring
|
|
|
|
parsedatetime
|
|
|
|
python-dateutil
|
|
|
|
pytz
|
|
|
|
pyxdg
|
|
|
|
pyyaml
|
|
|
|
tzlocal
|
2022-08-12 12:06:08 +00:00
|
|
|
ruamel-yaml
|
|
|
|
rich
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
2021-10-28 06:52:43 +00:00
|
|
|
pytest-bdd
|
2022-08-12 12:06:08 +00:00
|
|
|
pytest-xdist
|
2021-10-28 06:52:43 +00:00
|
|
|
pytestCheckHook
|
|
|
|
toml
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d);
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"jrnl"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2023-10-09 19:29:22 +00:00
|
|
|
changelog = "https://github.com/jrnl-org/jrnl/releases/tag/v${version}";
|
2021-10-28 06:52:43 +00:00
|
|
|
description = "Simple command line journal application that stores your journal in a plain text file";
|
|
|
|
homepage = "https://jrnl.sh/";
|
2021-02-13 14:23:35 +00:00
|
|
|
license = licenses.gpl3Only;
|
2023-02-02 18:25:31 +00:00
|
|
|
maintainers = with maintainers; [ bryanasdev000 zalakain ];
|
2023-10-09 19:29:22 +00:00
|
|
|
mainProgram = "jrnl";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|