2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-29 15:36:56 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-07-14 22:48:58 +01:00
|
|
|
, isPy3k
|
2018-10-29 15:36:56 +00:00
|
|
|
, isPyPy
|
2020-06-08 19:58:33 +01:00
|
|
|
, setuptools_scm
|
2018-10-29 15:36:56 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ujson";
|
2021-02-20 09:09:18 +00:00
|
|
|
version = "4.0.2";
|
2020-07-14 22:48:58 +01:00
|
|
|
disabled = isPyPy || (!isPy3k);
|
2018-10-29 15:36:56 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-20 09:09:18 +00:00
|
|
|
sha256 = "c615a9e9e378a7383b756b7e7a73c38b22aeb8967a8bfbffd4741f7ffd043c4d";
|
2018-10-29 15:36:56 +00:00
|
|
|
};
|
|
|
|
|
2020-06-08 19:58:33 +01:00
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://pypi.python.org/pypi/ujson";
|
2018-10-29 15:36:56 +00:00
|
|
|
description = "Ultra fast JSON encoder and decoder for Python";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|