summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/timeago/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/timeago/default.nix')
-rw-r--r--pkgs/development/python-modules/timeago/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/timeago/default.nix b/pkgs/development/python-modules/timeago/default.nix
new file mode 100644
index 000000000000..0c2a688f674e
--- /dev/null
+++ b/pkgs/development/python-modules/timeago/default.nix
@@ -0,0 +1,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 ];
+ };
+}