diff options
author | Silvan Mosberger <infinisil@icloud.com> | 2018-04-03 16:56:33 +0200 |
---|---|---|
committer | Silvan Mosberger <infinisil@icloud.com> | 2018-04-03 17:03:52 +0200 |
commit | 4ca6d25a9ca1b877962cfdc0e2af4be58c8c3409 (patch) | |
tree | 1b3689281a037c5107759a7264f72c47760e28be /pkgs/tools/misc/pdd | |
parent | 6a6bdca507e8445b2efd8f73ab86f9660f9bc3c2 (diff) |
pdd: init at 1.1
Diffstat (limited to 'pkgs/tools/misc/pdd')
-rw-r--r-- | pkgs/tools/misc/pdd/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/tools/misc/pdd/default.nix b/pkgs/tools/misc/pdd/default.nix new file mode 100644 index 0000000000000..d362bccb993e0 --- /dev/null +++ b/pkgs/tools/misc/pdd/default.nix @@ -0,0 +1,34 @@ +{ stdenv, fetchFromGitHub, buildPythonApplication, dateutil }: + +buildPythonApplication rec { + pname = "pdd"; + version = "1.1"; + + src = fetchFromGitHub { + owner = "jarun"; + repo = "pdd"; + rev = "v${version}"; + sha256 = "1nb64vdlym4najjyfxq1nprqcwgrwnqj1mml0fcg20hrgbjm4bf2"; + }; + + format = "other"; + + propagatedBuildInputs = [ dateutil ]; + + installFlags = [ "PREFIX=$(out)" ]; + + meta = with stdenv.lib; { + homepage = "https://github.com/jarun/pdd"; + description = "Tiny date, time diff calculator"; + longDescription = '' + There are times you want to check how old you are (in years, months, days) + or how long you need to wait for the next flash sale or the number of days + left of your notice period in your current job. pdd (Python3 Date Diff) is + a small cmdline utility to calculate date and time difference. If no + program arguments are specified it shows the current date, time and + timezone. + ''; + maintainers = [ maintainers.infinisil ]; + license = licenses.gpl3; + }; +} |