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