Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 27 lines 534 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPy3k 5, isPyPy 6, setuptools_scm 7}: 8 9buildPythonPackage rec { 10 pname = "ujson"; 11 version = "4.0.2"; 12 disabled = isPyPy || (!isPy3k); 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "c615a9e9e378a7383b756b7e7a73c38b22aeb8967a8bfbffd4741f7ffd043c4d"; 17 }; 18 19 nativeBuildInputs = [ setuptools_scm ]; 20 21 meta = with lib; { 22 homepage = "https://pypi.python.org/pypi/ujson"; 23 description = "Ultra fast JSON encoder and decoder for Python"; 24 license = licenses.bsd3; 25 }; 26 27}