Unverified Commit 94caaa22 authored by Arne Keller's avatar Arne Keller Committed by GitHub
Browse files

world-wall-clock: init at 0.1.4 (#306171)

parents a36c8c9e 571a9900
Loading
Loading
Loading
Loading
+39 −0
Original line number Diff line number Diff line
{
  lib,
  fetchFromGitHub,
  python3,
}:

python3.pkgs.buildPythonApplication rec {
  pname = "world-wall-clock";
  version = "0.1.4";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "ddelabru";
    repo = "world-wall-clock";
    tag = "v${version}";
    hash = "sha256-OTBYSStCFBrZ8JutrhyyJpi7vRvBAUK0EKTtjvbi13I=";
  };

  build-system = with python3.pkgs; [ poetry-core ];

  dependencies = with python3.pkgs; [
    tzdata
    urwid
    xdg-base-dirs
  ];

  nativeCheckInputs = with python3.pkgs; [ pytestCheckHook ];

  pytestFlagsArray = [ "tests/*" ];

  meta = {
    description = "TUI application that provides a multi-timezone graphical clock in a terminal environment.";
    homepage = "https://github.com/ddelabru/world-wall-clock";
    license = lib.licenses.gpl3Plus;
    maintainers = with lib.maintainers; [ ddelabru ];
    mainProgram = "wwclock";
    platforms = lib.platforms.all;
  };
}