mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-01 18:44:07 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
44 lines
770 B
Nix
44 lines
770 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, yajl
|
|
, cffi
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ijson";
|
|
version = "3.2.0.post0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-gKW9fpkjyrIAcB9nrSNyEEMouZ3fJJ276INBAshS0xY=";
|
|
};
|
|
|
|
buildInputs = [
|
|
yajl
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
cffi
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
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; [ rvl ];
|
|
};
|
|
}
|