1{ buildPythonPackage, fetchPypi, lib, jq }:
2
3buildPythonPackage rec {
4 pname = "jq";
5 version = "1.2.1";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "73ce588025495e6ebcda20bb9e64b6d9f3f1657c22895143ae243899ac710cbc";
10 };
11
12 patches = [
13 # Removes vendoring
14 ./jq-py-setup.patch
15 ];
16
17 buildInputs = [ jq ];
18
19 # no tests executed
20 doCheck = false;
21 pythonImportsCheck = [ "jq" ];
22
23 meta = {
24 description = "Python bindings for jq, the flexible JSON processor";
25 homepage = "https://github.com/mwilliamson/jq.py";
26 license = lib.licenses.bsd2;
27 maintainers = with lib.maintainers; [ benley ];
28 };
29}