2018-04-03 14:56:33 +00:00
|
|
|
{ stdenv, fetchFromGitHub, buildPythonApplication, dateutil }:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "pdd";
|
2018-07-04 03:27:12 +00:00
|
|
|
version = "1.3";
|
2018-04-03 14:56:33 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jarun";
|
|
|
|
repo = "pdd";
|
|
|
|
rev = "v${version}";
|
2018-07-04 03:27:12 +00:00
|
|
|
sha256 = "1r7861qg73jpchgmk8zcz0iki95ic1i3f77sd7j7vf5bvkikv739";
|
2018-04-03 14:56:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|