nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 36 lines 701 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPyPy 5, pytestCheckHook 6, pythonOlder 7, setuptools-scm 8}: 9 10buildPythonPackage rec { 11 pname = "ujson"; 12 version = "5.1.0"; 13 disabled = isPyPy || pythonOlder "3.7"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "a88944d2f99db71a3ca0c63d81f37e55b660edde0b07216fb65a3e46403ef004"; 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"; 32 homepage = "https://github.com/ultrajson/ultrajson"; 33 license = licenses.bsd3; 34 maintainers = with maintainers; [ SuperSandro2000 ]; 35 }; 36}