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";
|
|
|
|
version = "0.2.1";
|
2023-07-15 17:15:38 +00:00
|
|
|
format = "setuptools";
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fabaff";
|
|
|
|
repo = pname;
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-9LmFOWNUkvKfWHLo4HB1W1UBQL90Gp9UJJ3VDIYBDHo=";
|
2021-03-23 19:22:30 +00:00
|
|
|
};
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|