depot/third_party/nixpkgs/pkgs/development/python-modules/ujson/default.nix
Default email 619d6dcc77 Project import generated by Copybara.
GitOrigin-RevId: 870959c7fb3a42af1863bed9e1756086a74eb649
2021-08-22 09:53:02 +02:00

36 lines
679 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPyPy
, pytestCheckHook
, pythonOlder
, setuptools-scm
}:
buildPythonPackage rec {
pname = "ujson";
version = "4.1.0";
disabled = isPyPy || pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-IrY+xECfDS8sTJ1aozGZfgJHC3oVoyM/PMMvL5uS1Yw=";
};
nativeBuildInputs = [
setuptools-scm
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "ujson" ];
meta = with lib; {
description = "Ultra fast JSON encoder and decoder for Python";
homepage = "https://pypi.python.org/pypi/ujson";
license = licenses.bsd3;
maintainers = with maintainers; [ ];
};
}