1{ lib
2, fetchFromGitHub
3, buildPythonPackage
4, pythonOlder
5, pytestCheckHook
6, numpy
7, pandas
8, pytz
9}:
10
11buildPythonPackage rec {
12 pname = "json-tricks";
13 version = "3.17.3";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "mverleg";
20 repo = "pyjson_tricks";
21 rev = "refs/tags/v${version}";
22 hash = "sha256-xddMc4PvVI+mqB3eeVqECZmdeSKAURsdbOnUAXahqM0=";
23 };
24
25 nativeCheckInputs = [
26 numpy
27 pandas
28 pytz
29 pytestCheckHook
30 ];
31
32 pythonImportsCheck = [
33 "json_tricks"
34 ];
35
36 meta = with lib; {
37 description = "Extra features for Python JSON handling";
38 homepage = "https://github.com/mverleg/pyjson_tricks";
39 license = licenses.bsd3;
40 maintainers = with maintainers; [ bcdarwin ];
41 };
42}