2021-03-23 19:22:30 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
2023-07-15 17:15:38 +00:00
|
|
|
, python3
|
2021-03-23 19:22:30 +00:00
|
|
|
}:
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2021-03-23 19:22:30 +00:00
|
|
|
pname = "past-time";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.3.1";
|
|
|
|
pyproject = true;
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fabaff";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "past-time";
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-NSuU33vuHbgJ+cG0FrGYLizIrG7jSz+veptt3D4UegY=";
|
2021-03-23 19:22:30 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2021-03-23 19:22:30 +00:00
|
|
|
click
|
|
|
|
tqdm
|
|
|
|
];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
2021-03-23 19:22:30 +00:00
|
|
|
freezegun
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"past_time"
|
|
|
|
];
|
2021-03-23 19:22:30 +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-07-15 17:15:38 +00:00
|
|
|
changelog = "https://github.com/fabaff/past-time/releases/tag/${version}";
|
2021-03-23 19:22:30 +00:00
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "past-time";
|
2021-03-23 19:22:30 +00:00
|
|
|
};
|
|
|
|
}
|