3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/pdd/default.nix
R. RyanTM a6d58c8aba pdd: 1.1 -> 1.2 (#40962)
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.

These checks were done:

- built on NixOS
- /nix/store/lz66lx9blbjyigwbqph1kakgs5yfrbld-pdd-1.2/bin/.pdd-wrapped passed the binary check.
- /nix/store/lz66lx9blbjyigwbqph1kakgs5yfrbld-pdd-1.2/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.2 with grep in /nix/store/lz66lx9blbjyigwbqph1kakgs5yfrbld-pdd-1.2
- directory tree listing: https://gist.github.com/6e768315d72cdf1b94712a309f2f31e8
- du listing: https://gist.github.com/e6f91bfa7c9a1947b34596e2b745fb82
2018-05-28 14:36:52 +02:00

35 lines
1 KiB
Nix

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