depot/third_party/nixpkgs/pkgs/tools/misc/time-decode/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

37 lines
831 B
Nix

{ lib
, fetchFromGitHub
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "time-decode";
version = "6.1.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "digitalsleuth";
repo = "time_decode";
rev = "refs/tags/v${version}";
hash = "sha256-LbXycu3Yiku9ToW+WS/yUqwicvckj2IkP09TiZkRXnk=";
};
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";
changelog = "https://github.com/digitalsleuth/time_decode/releases/tag/v${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}