nixpkgs/pkgs/applications/misc/jrnl/default.nix
2021-03-14 06:13:44 +00:00

57 lines
1.0 KiB
Nix

{ lib
, ansiwrap
, asteval
, buildPythonApplication
, colorama
, cryptography
, fetchFromGitHub
, keyring
, parsedatetime
, poetry
, pytestCheckHook
, python-dateutil
, pytz
, pyxdg
, pyyaml
, tzlocal
}:
buildPythonApplication rec {
pname = "jrnl";
version = "2.7.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "jrnl-org";
repo = pname;
rev = "v${version}";
sha256 = "1m1shgnvwzzs0g6ph7rprwxd7w8zj0x4sbgiqsv9z41k6li7xj4r";
};
nativeBuildInputs = [ poetry ];
propagatedBuildInputs = [
ansiwrap
asteval
colorama
cryptography
keyring
parsedatetime
python-dateutil
pytz
pyxdg
pyyaml
tzlocal
];
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "jrnl" ];
meta = with lib; {
homepage = "http://maebert.github.io/jrnl/";
description = "A simple command line journal application that stores your journal in a plain text file";
license = licenses.gpl3Only;
maintainers = with maintainers; [ zalakain ];
};
}