summary refs log tree commit diff
path: root/pkgs/development/python-modules/timeago/default.nix
blob: 0c2a688f674ed3c7b1041443c580059f7251b07c (plain) (blame)
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.15";

  src = fetchFromGitHub {
    owner = "hustcc";
    repo = pname;
    rev = version;
    sha256 = "03vm7c02l4g2d1x33w382i1psk8i3an7xchk69yinha33fjj1cag";
  };

  checkInputs = [
    pytestCheckHook
  ];

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

  pythonImportsCheck = [ "timeago" ];

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