12 buildPythonPackage rec {
15 format = "setuptools";
17 disabled = pythonOlder "3.7";
19 src = fetchFromGitHub {
20 owner = "mwilliamson";
22 rev = "refs/tags/${version}";
23 hash = "sha256-c6tJI/mPlBGIYTk5ObIQ1CUTq73HouQ2quMZVWG8FFg=";
26 env.JQPY_USE_SYSTEM_LIBS = 1;
28 nativeBuildInputs = [ cython ];
39 nativeCheckInputs = [ pytestCheckHook ];
42 # intentional behavior change in jq 1.7.1 not reflected upstream
43 "test_given_json_text_then_strings_containing_null_characters_are_preserved"
46 pythonImportsCheck = [ "jq" ];
49 description = "Python bindings for jq, the flexible JSON processor";
50 homepage = "https://github.com/mwilliamson/jq.py";
51 changelog = "https://github.com/mwilliamson/jq.py/blob/${version}/CHANGELOG.rst";
52 license = licenses.bsd2;
53 maintainers = with maintainers; [ benley ];