diff options
author | Peter Hoeg <peter@hoeg.com> | 2018-04-05 15:46:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-05 15:46:28 +0800 |
commit | d7a16607e67d60c34a889c47a2116578edc593d7 (patch) | |
tree | 0cfd0baa62f9d8da0a72939b0d35a599a6697a37 | |
parent | 4afe9b1714342c3e9815e9a5e4381a4eda4852c6 (diff) | |
parent | 4ca6d25a9ca1b877962cfdc0e2af4be58c8c3409 (diff) | |
download | nixlib-d7a16607e67d60c34a889c47a2116578edc593d7.tar nixlib-d7a16607e67d60c34a889c47a2116578edc593d7.tar.gz nixlib-d7a16607e67d60c34a889c47a2116578edc593d7.tar.bz2 nixlib-d7a16607e67d60c34a889c47a2116578edc593d7.tar.lz nixlib-d7a16607e67d60c34a889c47a2116578edc593d7.tar.xz nixlib-d7a16607e67d60c34a889c47a2116578edc593d7.tar.zst nixlib-d7a16607e67d60c34a889c47a2116578edc593d7.zip |
Merge pull request #38395 from Infinisil/add/pdd
pdd: init at 1.1
-rw-r--r-- | pkgs/tools/misc/pdd/default.nix | 34 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/tools/misc/pdd/default.nix b/pkgs/tools/misc/pdd/default.nix new file mode 100644 index 000000000000..d362bccb993e --- /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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0efb0b83bad5..86611f44474a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4234,6 +4234,8 @@ with pkgs; pcsc-cyberjack = callPackage ../tools/security/pcsc-cyberjack { }; + pdd = python3Packages.callPackage ../tools/misc/pdd { }; + pdf2djvu = callPackage ../tools/typesetting/pdf2djvu { }; pdf2htmlEX = callPackage ../tools/typesetting/pdf2htmlEX { }; |