Something went wrong. Try again.
lol
Something went wrong. Try again.
1.0 kB · 52 lines
Nix
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253{ lib, buildPythonPackage, cython, fetchFromGitHub, jq, oniguruma, pytestCheckHook,}:
buildPythonPackage rec { pname = "jq"; version = "1.11.0"; format = "setuptools";
src = fetchFromGitHub { owner = "mwilliamson"; repo = "jq.py"; tag = version; hash = "sha256-v5Hi3SkLKX7KrCHiXDuEThSLghDU5VVhNGt1KpMEqC4="; };
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" ];
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 ]; };}