2020-09-09 07:18:08 +02:00
|
|
|
{ buildPythonPackage, fetchPypi, lib, jq }:
|
2019-01-19 03:01:19 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jq";
|
2021-08-18 08:16:20 +02:00
|
|
|
version = "1.2.1";
|
2019-01-19 03:01:19 +01:00
|
|
|
|
2020-08-15 02:46:13 +02:00
|
|
|
src = fetchPypi {
|
2019-01-19 03:01:19 +01:00
|
|
|
inherit pname version;
|
2021-08-18 08:16:20 +02:00
|
|
|
sha256 = "73ce588025495e6ebcda20bb9e64b6d9f3f1657c22895143ae243899ac710cbc";
|
2019-01-19 03:01:19 +01:00
|
|
|
};
|
2021-02-23 16:32:35 +01:00
|
|
|
|
2021-05-08 01:16:04 +02:00
|
|
|
patches = [
|
|
|
|
# Removes vendoring
|
|
|
|
./jq-py-setup.patch
|
|
|
|
];
|
2019-01-19 03:01:19 +01:00
|
|
|
|
|
|
|
buildInputs = [ jq ];
|
|
|
|
|
2021-02-23 16:32:35 +01:00
|
|
|
# no tests executed
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "jq" ];
|
|
|
|
|
2019-01-19 03:01:19 +01:00
|
|
|
meta = {
|
|
|
|
description = "Python bindings for jq, the flexible JSON processor";
|
|
|
|
homepage = "https://github.com/mwilliamson/jq.py";
|
|
|
|
license = lib.licenses.bsd2;
|
|
|
|
maintainers = with lib.maintainers; [ benley ];
|
|
|
|
};
|
|
|
|
}
|