1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5}: 6 7buildPythonPackage rec { 8 pname = "timeago"; 9 version = "1.0.15"; 10 11 src = fetchFromGitHub { 12 owner = "hustcc"; 13 repo = pname; 14 rev = version; 15 sha256 = "03vm7c02l4g2d1x33w382i1psk8i3an7xchk69yinha33fjj1cag"; 16 }; 17 18 checkInputs = [ 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}