at master 688 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6}: 7 8buildPythonPackage rec { 9 pname = "timeago"; 10 version = "1.0.16"; 11 format = "setuptools"; 12 13 src = fetchFromGitHub { 14 owner = "hustcc"; 15 repo = "timeago"; 16 rev = version; 17 sha256 = "sha256-PqORJKAVrjezU/yP2ky3gb1XsM8obDI3GQzi+mok/OM="; 18 }; 19 20 nativeCheckInputs = [ pytestCheckHook ]; 21 22 enabledTestPaths = [ "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}