nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytestCheckHook,
6 setuptools-scm,
7}:
8
9buildPythonPackage rec {
10 pname = "ujson";
11 version = "5.11.0";
12 format = "setuptools";
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-4gSub5CfCZumtrlCExzuNZ3dorbk6jnBLri5kf4gEOA=";
17 };
18
19 nativeBuildInputs = [ setuptools-scm ];
20
21 nativeCheckInputs = [ pytestCheckHook ];
22
23 pythonImportsCheck = [ "ujson" ];
24
25 meta = {
26 description = "Ultra fast JSON encoder and decoder";
27 homepage = "https://github.com/ultrajson/ultrajson";
28 license = lib.licenses.bsd3;
29 maintainers = [ ];
30 };
31}