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

57 lines
1022 B
Nix
Raw Normal View History

{ lib
2021-02-11 15:48:36 +00:00
, ansiwrap
, asteval
, buildPythonApplication
, colorama
, cryptography
, fetchFromGitHub
, keyring
, parsedatetime
, poetry
, pytestCheckHook
, python-dateutil
, pytz
, pyxdg
, pyyaml
, tzlocal
}:
buildPythonApplication rec {
pname = "jrnl";
2021-02-11 15:48:36 +00:00
version = "2.7";
format = "pyproject";
2021-02-11 15:48:36 +00:00
src = fetchFromGitHub {
owner = "jrnl-org";
repo = pname;
rev = "v${version}";
sha256 = "1hyjjw9mxy73n3pkliaaif135h2sd4iy43pw9d5zynid5abnr3yz";
};
2021-02-11 15:48:36 +00:00
nativeBuildInputs = [ poetry ];
propagatedBuildInputs = [
2021-02-11 15:48:36 +00:00
ansiwrap
asteval
colorama
cryptography
keyring
parsedatetime
python-dateutil
pytz
pyxdg
pyyaml
tzlocal
];
2021-02-11 15:48:36 +00:00
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";
2021-02-11 15:48:36 +00:00
license = licenses.gpl3Only;
maintainers = with maintainers; [ zalakain ];
};
}