9 python3.pkgs.buildPythonApplication rec {
14 src = fetchFromGitHub {
17 rev = "refs/tags/v${version}";
18 hash = "sha256-DtujXSDJWnOrHjVgJEJNKJMhSrNBHlR2hvHeHLSIF2o=";
22 # Support pytest_bdd 7.1.2 and later, https://github.com/jrnl-org/jrnl/pull/1878
23 substituteInPlace tests/lib/when_steps.py \
24 --replace-fail "from pytest_bdd.steps import inject_fixture" "from pytest_bdd.compat import inject_fixture"
27 build-system = with python3.pkgs; [ poetry-core ];
29 dependencies = with python3.pkgs; [
44 nativeCheckInputs = with python3.pkgs; [
47 (pytestCheckHook.override { pytest = pytest_7; })
52 export HOME=$(mktemp -d);
55 pythonImportsCheck = [ "jrnl" ];
57 passthru.tests.version = testers.testVersion {
59 version = "v${version}";
63 description = "Command line journal application that stores your journal in a plain text file";
64 homepage = "https://jrnl.sh/";
65 changelog = "https://github.com/jrnl-org/jrnl/releases/tag/v${version}";
66 license = licenses.gpl3Only;
67 maintainers = with maintainers; [