5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
42 lines
776 B
Nix
42 lines
776 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, pytestCheckHook
|
|
, numpy
|
|
, pandas
|
|
, pytz
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "json-tricks";
|
|
version = "3.17.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mverleg";
|
|
repo = "pyjson_tricks";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-xddMc4PvVI+mqB3eeVqECZmdeSKAURsdbOnUAXahqM0=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
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 ];
|
|
};
|
|
}
|