Merge pull request #253311 from antonmosich/jrnl-update

jrnl: 3.3 -> 4.0.1
This commit is contained in:
Weijia Wang 2023-09-06 13:09:26 +02:00 committed by GitHub
commit f76b6f4bc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,14 +5,14 @@
python3.pkgs.buildPythonApplication rec {
pname = "jrnl";
version = "3.3";
version = "4.0.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "jrnl-org";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "sha256-e2w0E8t6s0OWx2ROme2GdyzWhmCc6hnMfSdLTZqt3bg=";
hash = "sha256-NpI19NQxfDiqcfFI9kMqfMboI4fQTqCG7AoG9o8YoEI=";
};
nativeBuildInputs = with python3.pkgs; [
@ -42,17 +42,6 @@ python3.pkgs.buildPythonApplication rec {
toml
];
# Upstream expects a old pytest-bdd version
# Once it changes we should update here too
# https://github.com/jrnl-org/jrnl/blob/develop/poetry.lock#L732
disabledTests = [
"bdd"
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'rich = "^12.2.0"' 'rich = ">=12.2.0, <14.0.0"'
'';
preCheck = ''
export HOME=$(mktemp -d);
@ -63,9 +52,11 @@ python3.pkgs.buildPythonApplication rec {
];
meta = with lib; {
changelog = "https://github.com/jrnl-org/jrnl/releases/tag/v${version}";
description = "Simple command line journal application that stores your journal in a plain text file";
homepage = "https://jrnl.sh/";
license = licenses.gpl3Only;
maintainers = with maintainers; [ bryanasdev000 zalakain ];
mainProgram = "jrnl";
};
}