1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytestCheckHook
5, pythonOlder
6, setuptools-scm
7}:
8
9buildPythonPackage rec {
10 pname = "ujson";
11 version = "5.8.0";
12 disabled = pythonOlder "3.7";
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-eOMY3vSt6JikYbPZKnn5RB5+Dk0q1UGavtQzbXAsdCU=";
17 };
18
19 nativeBuildInputs = [
20 setuptools-scm
21 ];
22
23 nativeCheckInputs = [
24 pytestCheckHook
25 ];
26
27 pythonImportsCheck = [ "ujson" ];
28
29 meta = with lib; {
30 description = "Ultra fast JSON encoder and decoder";
31 homepage = "https://github.com/ultrajson/ultrajson";
32 license = licenses.bsd3;
33 maintainers = with maintainers; [ ];
34 };
35}