1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytestCheckHook
5, pythonOlder
6, setuptools-scm
7}:
8
9buildPythonPackage rec {
10 pname = "ujson";
11 version = "5.7.0";
12 disabled = pythonOlder "3.7";
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-54jl1dyuj2EYrJtF0LiRoNVfesSA7dy38HJj8rzzeyM=";
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; [ SuperSandro2000 ];
34 };
35}