Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354{ lib, buildPythonPackage, cython, fetchFromGitHub, jq, oniguruma, pytestCheckHook,}:
buildPythonPackage rec { pname = "jq"; version = "1.12.0"; format = "setuptools";
src = fetchFromGitHub { owner = "mwilliamson"; repo = "jq.py"; tag = version; hash = "sha256-glWEqoS+QaoIiBJu9DXd+VvhPnWOgRT4VaYfMpjbR5g="; };
env.JQPY_USE_SYSTEM_LIBS = 1;
nativeBuildInputs = [ cython ];
buildInputs = [ jq oniguruma ];
preBuild = '' cython jq.pyx '';
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [ # tries to match exact error text, fails with jq 1.8 "test_value_error_is_raised_if_program_is_invalid" "test_value_error_is_raised_if_input_cannot_be_processed_by_program" ];
pythonImportsCheck = [ "jq" ];
meta = { description = "Python bindings for jq, the flexible JSON processor"; homepage = "https://github.com/mwilliamson/jq.py"; changelog = "https://github.com/mwilliamson/jq.py/blob/${version}/CHANGELOG.rst"; license = lib.licenses.bsd2; maintainers = with lib.maintainers; [ benley ]; };}