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.15.5";
14 disabled = pythonOlder "3.5";
15
16 src = fetchFromGitHub {
17 owner = "mverleg";
18 repo = "pyjson_tricks";
19 rev = "v${version}";
20 sha256 = "wdpqCqMO0EzKyqE4ishL3CTsSw3sZPGvJ0HEktKFgZU=";
21 };
22
23 nativeCheckInputs = [ numpy pandas pytz pytestCheckHook ];
24
25 pythonImportsCheck = [ "json_tricks" ];
26
27 meta = with lib; {
28 description = "Extra features for Python JSON handling";
29 homepage = "https://github.com/mverleg/pyjson_tricks";
30 license = licenses.bsd3;
31 maintainers = with maintainers; [ bcdarwin ];
32 };
33}