diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-03-21 01:04:23 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-03-21 01:04:23 +0100 |
commit | ef5d88f0819f259d0e7ef9bb5d1f7804bd25ce91 (patch) | |
tree | 2083571f7bf2c0c36bda8d4c2e2dbaa64039ebb9 /pkgs/tools/misc/past-time | |
parent | 4c817c73ac397909eae48f329691fa65bcc788b9 (diff) |
past-time: init at 0.2.1
Diffstat (limited to 'pkgs/tools/misc/past-time')
-rw-r--r-- | pkgs/tools/misc/past-time/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/tools/misc/past-time/default.nix b/pkgs/tools/misc/past-time/default.nix new file mode 100644 index 0000000000000..3604e4ddcb4a7 --- /dev/null +++ b/pkgs/tools/misc/past-time/default.nix @@ -0,0 +1,39 @@ +{ lib +, buildPythonApplication +, click +, fetchFromGitHub +, freezegun +, pytestCheckHook +, tqdm +}: + +buildPythonApplication rec { + pname = "past-time"; + version = "0.2.1"; + + src = fetchFromGitHub { + owner = "fabaff"; + repo = pname; + rev = version; + sha256 = "0yhc0630rmcx4ia9y6klpx002mavfmqf1s3jb2gz54jlccwqbfgl"; + }; + + propagatedBuildInputs = [ + click + tqdm + ]; + + checkInputs = [ + freezegun + pytestCheckHook + ]; + + pythonImportsCheck = [ "past_time" ]; + + meta = with lib; { + description = "Tool to visualize the progress of the year based on the past days"; + homepage = "https://github.com/fabaff/past-time"; + license = with licenses; [ asl20 ]; + maintainers = with maintainers; [ fab ]; + }; +} |