nixpkgs/pkgs/applications/misc/jrnl/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

69 lines
1.3 KiB
Nix
Raw Normal View History

{ lib
2021-02-11 15:48:36 +00:00
, fetchFromGitHub
2021-10-22 17:27:15 +00:00
, python3
2023-11-05 10:52:47 +00:00
, testers
, jrnl
}:
2021-10-22 17:27:15 +00:00
python3.pkgs.buildPythonApplication rec {
pname = "jrnl";
version = "4.1";
2021-02-11 15:48:36 +00:00
format = "pyproject";
2021-02-11 15:48:36 +00:00
src = fetchFromGitHub {
owner = "jrnl-org";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-DtujXSDJWnOrHjVgJEJNKJMhSrNBHlR2hvHeHLSIF2o=";
};
2021-10-22 17:27:15 +00:00
nativeBuildInputs = with python3.pkgs; [
poetry-core
];
2021-02-11 15:48:36 +00:00
2021-10-22 17:27:15 +00:00
propagatedBuildInputs = with python3.pkgs; [
2021-02-11 15:48:36 +00:00
asteval
colorama
cryptography
keyring
parsedatetime
python-dateutil
pytz
pyxdg
pyyaml
tzlocal
ruamel-yaml
rich
];
nativeCheckInputs = with python3.pkgs; [
2021-10-22 17:27:15 +00:00
pytest-bdd
pytest-xdist
2021-10-22 17:27:15 +00:00
pytestCheckHook
toml
];
preCheck = ''
export HOME=$(mktemp -d);
'';
pythonImportsCheck = [
"jrnl"
];
2023-11-05 10:52:47 +00:00
passthru.tests.version = testers.testVersion {
package = jrnl;
version = "v${version}";
};
meta = with lib; {
changelog = "https://github.com/jrnl-org/jrnl/releases/tag/v${version}";
2021-10-22 17:27:15 +00:00
description = "Simple command line journal application that stores your journal in a plain text file";
homepage = "https://jrnl.sh/";
2021-02-11 15:48:36 +00:00
license = licenses.gpl3Only;
maintainers = with maintainers; [ bryanasdev000 zalakain ];
mainProgram = "jrnl";
};
}