diff --git a/pkgs/tools/misc/time-decode/default.nix b/pkgs/tools/misc/time-decode/default.nix new file mode 100644 index 000000000000..6dbb694770c8 --- /dev/null +++ b/pkgs/tools/misc/time-decode/default.nix @@ -0,0 +1,33 @@ +{ lib +, fetchFromGitHub +, python3 +}: + +python3.pkgs.buildPythonApplication rec { + pname = "time-decode"; + version = "3.2.0"; + + src = fetchFromGitHub { + owner = "digitalsleuth"; + repo = "time_decode"; + rev = "v${version}"; + sha256 = "1iwqdq1ail04hs8pkb6rxan4ng2jl2iar6pk72skj41xh4qhlyg6"; + }; + + propagatedBuildInputs = with python3.pkgs; [ + colorama + python-dateutil + ]; + + # Project has no tests + doCheck = false; + + pythonImportsCheck = [ "time_decode" ]; + + meta = with lib; { + description = "Timestamp and date decoder"; + homepage = "https://github.com/digitalsleuth/time_decode"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4e5776f46dde..f65c917d975b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9709,6 +9709,8 @@ with pkgs; tinyproxy = callPackage ../tools/networking/tinyproxy { }; + time-decode = callPackage ../tools/misc/time-decode { }; + tio = callPackage ../tools/misc/tio { }; tiv = callPackage ../applications/misc/tiv { };