2021-07-03 12:37:24 +01:00
|
|
|
{ lib, fetchFromGitHub, buildPythonApplication, python-dateutil }:
|
2018-04-03 15:56:33 +01:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "pdd";
|
2020-10-24 23:03:25 +01:00
|
|
|
version = "1.5";
|
2018-04-03 15:56:33 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jarun";
|
|
|
|
repo = "pdd";
|
|
|
|
rev = "v${version}";
|
2020-10-24 23:03:25 +01:00
|
|
|
sha256 = "1ivzcbm888aibiihw03idp38qbl8mywj1lc1x0q787v0pzqfb4ss";
|
2018-04-03 15:56:33 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
format = "other";
|
|
|
|
|
2021-07-03 12:37:24 +01:00
|
|
|
propagatedBuildInputs = [ python-dateutil ];
|
2018-04-03 15:56:33 +01:00
|
|
|
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-04-03 15:56:33 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|