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.

40 lines
857 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.2.1";
format = "setuptools";
2021-03-21 00:04:23 +00:00
src = fetchFromGitHub {
owner = "fabaff";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-9LmFOWNUkvKfWHLo4HB1W1UBQL90Gp9UJJ3VDIYBDHo=";
2021-03-21 00:04:23 +00:00
};
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 ];
};
}