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