2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2018-10-29 16:36:56 +01:00
|
|
|
, 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-11-29 15:04:45 +01:00
|
|
|
version = "4.0.1";
|
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-11-29 15:04:45 +01:00
|
|
|
sha256 = "26cf6241b36ff5ce4539ae687b6b02673109c5e3efc96148806a7873eaa229d3";
|
2018-10-29 16:36:56 +01:00
|
|
|
};
|
|
|
|
|
2020-06-08 20:58:33 +02:00
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with 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;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|