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