2018-10-29 08:36:56 -07:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-07-14 14:48:58 -07:00
|
|
|
, isPy3k
|
2018-10-29 08:36:56 -07:00
|
|
|
, isPyPy
|
2020-06-08 11:58:33 -07:00
|
|
|
, setuptools_scm
|
2018-10-29 08:36:56 -07:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ujson";
|
2020-06-05 23:47:35 -07:00
|
|
|
version = "3.0.0";
|
2020-07-14 14:48:58 -07:00
|
|
|
disabled = isPyPy || (!isPy3k);
|
2018-10-29 08:36:56 -07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-05 23:47:35 -07:00
|
|
|
sha256 = "e0199849d61cc6418f94d52a314c6a27524d65e82174d2a043fb718f73d1520d";
|
2018-10-29 08:36:56 -07:00
|
|
|
};
|
|
|
|
|
2020-06-08 11:58:33 -07:00
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
|
|
|
|
2018-10-29 08:36:56 -07:00
|
|
|
meta = with stdenv.lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://pypi.python.org/pypi/ujson";
|
2018-10-29 08:36:56 -07:00
|
|
|
description = "Ultra fast JSON encoder and decoder for Python";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|