mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 22:20:51 +00:00
a6d58c8aba
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
35 lines
1 KiB
Nix
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;
|
|
};
|
|
}
|