nixpkgs-suyu/pkgs/tools/misc/pdd/default.nix
R. RyanTM e8b101da14 pdd: 1.2 -> 1.3
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/pdd/versions.

Version release notes (from GitHub):
## What's in?

- Custom resolution for stopwatch (default - milliseconds)
- Option `-q` (quiet) to run timers in the background
- Show timers in reverse video
- Use ISO 8601 format for dates
- Some Windows-specific fixes

**Note:** the attached auto-generated package for Ubuntu 18.04 has a missing dependency - `python3-dateutil`. It's required but had to be ignored temporarily due to a build failure. Please run:

    sudo apt-get install python3-dateutil
for the package to work correctly after installation.

<p align="center">
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RMLTQ76JSXJ4Q"><img src="https://img.shields.io/badge/PayPal-donate-green.svg" alt="Donate via PayPal!" /></a>
</p>

These checks were done:

- built on NixOS
- /nix/store/mwv0y87m5x73xslyq4zar4vxxdvfwww7-pdd-1.3/bin/.pdd-wrapped passed the binary check.
- /nix/store/mwv0y87m5x73xslyq4zar4vxxdvfwww7-pdd-1.3/bin/pdd passed the binary check.
- 2 of 2 passed binary check by having a zero exit code.
- 0 of 2 passed binary check by having the new version present in output.
- found 1.3 with grep in /nix/store/mwv0y87m5x73xslyq4zar4vxxdvfwww7-pdd-1.3
- directory tree listing: https://gist.github.com/0848d82c6dddf60c43205c10b360df35
- du listing: https://gist.github.com/c2d9c78b7020ca61bd818ab1ac43ab93
2018-07-03 20:27:12 -07:00

34 lines
1 KiB
Nix

{ stdenv, fetchFromGitHub, buildPythonApplication, dateutil }:
buildPythonApplication rec {
pname = "pdd";
version = "1.3";
src = fetchFromGitHub {
owner = "jarun";
repo = "pdd";
rev = "v${version}";
sha256 = "1r7861qg73jpchgmk8zcz0iki95ic1i3f77sd7j7vf5bvkikv739";
};
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;
};
}