1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5}:
6
7buildPythonPackage rec {
8 pname = "timeago";
9 version = "1.0.16";
10
11 src = fetchFromGitHub {
12 owner = "hustcc";
13 repo = pname;
14 rev = version;
15 sha256 = "sha256-PqORJKAVrjezU/yP2ky3gb1XsM8obDI3GQzi+mok/OM=";
16 };
17
18 nativeCheckInputs = [
19 pytestCheckHook
20 ];
21
22 pytestFlagsArray = [ "test/testcase.py" ];
23
24 pythonImportsCheck = [ "timeago" ];
25
26 meta = with lib; {
27 description = "Python module to format past datetime output";
28 homepage = "https://github.com/hustcc/timeago";
29 license = with licenses; [ mit ];
30 maintainers = with maintainers; [ fab ];
31 };
32}