about summary refs log tree commit diff
path: root/pkgs/development/python-modules/json-tricks
diff options
context:
space:
mode:
authorBen Darwin <bcdarwin@gmail.com>2021-12-21 11:56:54 -0500
committerJonathan Ringer <jonringer@users.noreply.github.com>2022-01-11 09:32:54 -0800
commitd2573f647bf36d90d361b3dd5dbea4695c9dfc59 (patch)
treec05c02f870b9878c6d4165676147502920bd1782 /pkgs/development/python-modules/json-tricks
parent54c051fab56824adf7d2ef6ac8da5bd67dd3e622 (diff)
json-tricks: init at 3.15.5
Diffstat (limited to 'pkgs/development/python-modules/json-tricks')
-rw-r--r--pkgs/development/python-modules/json-tricks/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/json-tricks/default.nix b/pkgs/development/python-modules/json-tricks/default.nix
new file mode 100644
index 0000000000000..9995e537c5410
--- /dev/null
+++ b/pkgs/development/python-modules/json-tricks/default.nix
@@ -0,0 +1,33 @@
+{ lib
+, fetchFromGitHub
+, buildPythonPackage
+, pythonOlder
+, pytestCheckHook
+, numpy
+, pandas
+, pytz
+}:
+
+buildPythonPackage rec {
+  pname = "json-tricks";
+  version = "3.15.5";
+  disabled = pythonOlder "3.5";
+
+  src = fetchFromGitHub {
+    owner = "mverleg";
+    repo = "pyjson_tricks";
+    rev = "v${version}";
+    sha256 = "wdpqCqMO0EzKyqE4ishL3CTsSw3sZPGvJ0HEktKFgZU=";
+  };
+
+  checkInputs = [ numpy pandas pytz pytestCheckHook ];
+
+  pythonImportsCheck = [ "json_tricks" ];
+
+  meta = with lib; {
+    description = "Extra features for Python JSON handling";
+    homepage = "https://github.com/mverleg/pyjson_tricks";
+    license = licenses.bsd3;
+    maintainers = with maintainers; [ bcdarwin ];
+  };
+}