mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
69 lines
1.3 KiB
Nix
69 lines
1.3 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, python3
|
|
, testers
|
|
, jrnl
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "jrnl";
|
|
version = "4.1";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jrnl-org";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-DtujXSDJWnOrHjVgJEJNKJMhSrNBHlR2hvHeHLSIF2o=";
|
|
};
|
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
asteval
|
|
colorama
|
|
cryptography
|
|
keyring
|
|
parsedatetime
|
|
python-dateutil
|
|
pytz
|
|
pyxdg
|
|
pyyaml
|
|
tzlocal
|
|
ruamel-yaml
|
|
rich
|
|
];
|
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
|
pytest-bdd
|
|
pytest-xdist
|
|
pytestCheckHook
|
|
toml
|
|
];
|
|
|
|
|
|
preCheck = ''
|
|
export HOME=$(mktemp -d);
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"jrnl"
|
|
];
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = jrnl;
|
|
version = "v${version}";
|
|
};
|
|
|
|
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";
|
|
};
|
|
}
|