depot/third_party/nixpkgs/pkgs/development/python-modules/ijson/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

50 lines
852 B
Nix

{ lib
, buildPythonPackage
, cffi
, fetchPypi
, pytestCheckHook
, pythonOlder
, setuptools
, yajl
}:
buildPythonPackage rec {
pname = "ijson";
version = "3.2.3";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-EClOm/ictxPaBbxHkL3/YWYQQy21YZZIJwdImOF0+Rc=";
};
build-system = [
setuptools
];
buildInputs = [
yajl
];
dependencies = [
cffi
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"ijson"
];
meta = with lib; {
description = "Iterative JSON parser with a standard Python iterator interface";
homepage = "https://github.com/ICRAR/ijson";
changelog = "https://github.com/ICRAR/ijson/blob/v${version}/CHANGELOG.md";
license = licenses.bsd3;
maintainers = with maintainers; [ ];
};
}