2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-29 15:36:56 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPyPy
|
2021-08-18 11:51:32 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2021-06-03 10:09:11 +00:00
|
|
|
, setuptools-scm
|
2018-10-29 15:36:56 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ujson";
|
2022-01-14 00:59:07 +00:00
|
|
|
version = "5.1.0";
|
2022-05-10 21:03:36 +00:00
|
|
|
disabled = isPyPy || pythonOlder "3.7";
|
2018-10-29 15:36:56 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-01-14 00:59:07 +00:00
|
|
|
sha256 = "a88944d2f99db71a3ca0c63d81f37e55b660edde0b07216fb65a3e46403ef004";
|
2018-10-29 15:36:56 +00:00
|
|
|
};
|
|
|
|
|
2021-08-18 11:51:32 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "ujson" ];
|
2020-06-08 18:58:33 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2022-05-10 21:03:36 +00:00
|
|
|
description = "Ultra fast JSON encoder and decoder";
|
|
|
|
homepage = "https://github.com/ultrajson/ultrajson";
|
2018-10-29 15:36:56 +00:00
|
|
|
license = licenses.bsd3;
|
2022-05-10 21:03:36 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2018-10-29 15:36:56 +00:00
|
|
|
};
|
|
|
|
}
|