nixpkgs/pkgs/development/python-modules/ujson/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
701 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, isPyPy
2021-08-18 11:51:32 +00:00
, pytestCheckHook
, pythonOlder
, setuptools-scm
}:
buildPythonPackage rec {
pname = "ujson";
2022-01-14 00:59:07 +00:00
version = "5.1.0";
disabled = isPyPy || pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
2022-01-14 00:59:07 +00:00
sha256 = "a88944d2f99db71a3ca0c63d81f37e55b660edde0b07216fb65a3e46403ef004";
};
2021-08-18 11:51:32 +00:00
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 ];
};
}