1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPyPy
5, pytestCheckHook
6, pythonOlder
7, setuptools-scm
8}:
9
10buildPythonPackage rec {
11 pname = "ujson";
12 version = "4.2.0";
13 disabled = isPyPy || pythonOlder "3.5";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "fffe509f556861c7343c6cba57ed05fe7bcf4b48a934a5b946ccb45428cf8883";
18 };
19
20 nativeBuildInputs = [
21 setuptools-scm
22 ];
23
24 checkInputs = [
25 pytestCheckHook
26 ];
27
28 pythonImportsCheck = [ "ujson" ];
29
30 meta = with lib; {
31 description = "Ultra fast JSON encoder and decoder for Python";
32 homepage = "https://pypi.python.org/pypi/ujson";
33 license = licenses.bsd3;
34 maintainers = with maintainers; [ ];
35 };
36}