2022-01-13 20:06:32 +00:00
|
|
|
{ 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=";
|
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ numpy pandas pytz pytestCheckHook ];
|
2022-01-13 20:06:32 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|