nixpkgs/pkgs/tools/misc/past-time/default.nix

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

45 lines
954 B
Nix
Raw Normal View History

2021-03-21 00:04:23 +00:00
{ lib
, fetchFromGitHub
, python3
2021-03-21 00:04:23 +00:00
}:
python3.pkgs.buildPythonApplication rec {
2021-03-21 00:04:23 +00:00
pname = "past-time";
version = "0.3.1";
pyproject = true;
2021-03-21 00:04:23 +00:00
src = fetchFromGitHub {
owner = "fabaff";
repo = "past-time";
rev = "refs/tags/${version}";
hash = "sha256-NSuU33vuHbgJ+cG0FrGYLizIrG7jSz+veptt3D4UegY=";
2021-03-21 00:04:23 +00:00
};
nativeBuildInputs = with python3.pkgs; [
poetry-core
];
propagatedBuildInputs = with python3.pkgs; [
2021-03-21 00:04:23 +00:00
click
tqdm
];
nativeCheckInputs = with python3.pkgs; [
2021-03-21 00:04:23 +00:00
freezegun
pytestCheckHook
];
pythonImportsCheck = [
"past_time"
];
2021-03-21 00:04:23 +00:00
meta = with lib; {
description = "Tool to visualize the progress of the year based on the past days";
homepage = "https://github.com/fabaff/past-time";
changelog = "https://github.com/fabaff/past-time/releases/tag/${version}";
2021-03-21 00:04:23 +00:00
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
2023-11-27 01:17:53 +00:00
mainProgram = "past-time";
2021-03-21 00:04:23 +00:00
};
}