nixpkgs/pkgs/development/python-modules/ujson/default.nix
2022-07-21 22:35:21 +02:00

37 lines
688 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPyPy
, pytestCheckHook
, pythonOlder
, setuptools-scm
}:
buildPythonPackage rec {
pname = "ujson";
version = "5.4.0";
disabled = isPyPy || pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-a5U+CUQeMHUEEwdV5b1rFYUBeNWR9mKSu6RgjE9/mwA=";
};
nativeBuildInputs = [
setuptools-scm
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "ujson" ];
meta = with lib; {
description = "Ultra fast JSON encoder and decoder";
homepage = "https://github.com/ultrajson/ultrajson";
license = licenses.bsd3;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}