2018-10-29 15:36:56 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-07-14 21:48:58 +00:00
|
|
|
, isPy3k
|
2018-10-29 15:36:56 +00:00
|
|
|
, isPyPy
|
2020-06-08 18:58:33 +00:00
|
|
|
, setuptools_scm
|
2018-10-29 15:36:56 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ujson";
|
2020-08-16 17:31:19 +00:00
|
|
|
version = "3.1.0";
|
2020-07-14 21:48:58 +00:00
|
|
|
disabled = isPyPy || (!isPy3k);
|
2018-10-29 15:36:56 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-16 17:31:19 +00:00
|
|
|
sha256 = "00bda1de275ed6fe81817902189c75dfd156b4fa29b44dc1f4620775d2f50cf7";
|
2018-10-29 15:36:56 +00:00
|
|
|
};
|
|
|
|
|
2020-06-08 18:58:33 +00:00
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
|
|
|
|
2018-10-29 15:36:56 +00:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 01:11:51 +00: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;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|