2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-29 15:36:56 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPyPy
|
2021-08-18 12:51:32 +01:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2021-06-03 11:09:11 +01:00
|
|
|
, setuptools-scm
|
2018-10-29 15:36:56 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ujson";
|
2021-10-08 23:23:18 +01:00
|
|
|
version = "4.2.0";
|
2021-08-18 12:51:32 +01:00
|
|
|
disabled = isPyPy || pythonOlder "3.5";
|
2018-10-29 15:36:56 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-10-08 23:23:18 +01:00
|
|
|
sha256 = "fffe509f556861c7343c6cba57ed05fe7bcf4b48a934a5b946ccb45428cf8883";
|
2018-10-29 15:36:56 +00:00
|
|
|
};
|
|
|
|
|
2021-08-18 12:51:32 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "ujson" ];
|
2020-06-08 19:58:33 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-29 15:36:56 +00:00
|
|
|
description = "Ultra fast JSON encoder and decoder for Python";
|
2021-08-18 12:51:32 +01:00
|
|
|
homepage = "https://pypi.python.org/pypi/ujson";
|
2018-10-29 15:36:56 +00:00
|
|
|
license = licenses.bsd3;
|
2021-08-18 12:51:32 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-10-29 15:36:56 +00:00
|
|
|
};
|
|
|
|
}
|