2021-03-21 00:04:23 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
2023-06-07 22:04:49 +00:00
|
|
|
, python3
|
2021-03-21 00:04:23 +00:00
|
|
|
}:
|
|
|
|
|
2023-06-07 22:04:49 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2021-03-21 00:04:23 +00:00
|
|
|
pname = "past-time";
|
2024-03-06 07:58:51 +00:00
|
|
|
version = "0.3.1";
|
2024-03-06 07:53:35 +00:00
|
|
|
pyproject = true;
|
2021-03-21 00:04:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fabaff";
|
2024-03-06 07:53:35 +00:00
|
|
|
repo = "past-time";
|
2023-06-07 22:01:53 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-03-06 07:58:51 +00:00
|
|
|
hash = "sha256-NSuU33vuHbgJ+cG0FrGYLizIrG7jSz+veptt3D4UegY=";
|
2021-03-21 00:04:23 +00:00
|
|
|
};
|
|
|
|
|
2024-03-06 07:53:35 +00:00
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
2023-06-07 22:04:49 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2021-03-21 00:04:23 +00:00
|
|
|
click
|
|
|
|
tqdm
|
|
|
|
];
|
|
|
|
|
2023-06-07 22:04:49 +00:00
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
2021-03-21 00:04:23 +00:00
|
|
|
freezegun
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2023-06-07 22:01:53 +00:00
|
|
|
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";
|
2023-06-07 22:01:53 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|