c7f94ff3ce
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
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.2";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mverleg";
|
|
repo = "pyjson_tricks";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-7AT4h+f3FDTITfVZyLTimZlDGuAxKwe0kFYBEFGv51s=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|