summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/timeago/default.nix
blob: 88f565d1f1dcc8b21ca59343545b49b726478cbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "timeago";
  version = "1.0.16";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "hustcc";
    repo = "timeago";
    rev = version;
    sha256 = "sha256-PqORJKAVrjezU/yP2ky3gb1XsM8obDI3GQzi+mok/OM=";
  };

  nativeCheckInputs = [ pytestCheckHook ];

  enabledTestPaths = [ "test/testcase.py" ];

  pythonImportsCheck = [ "timeago" ];

  meta = {
    description = "Python module to format past datetime output";
    homepage = "https://github.com/hustcc/timeago";
    license = with lib.licenses; [ mit ];
    maintainers = with lib.maintainers; [ fab ];
  };
}