nixpkgs/pkgs/development/python-modules/jq/default.nix

30 lines
628 B
Nix
Raw Normal View History

2020-09-09 05:18:08 +00:00
{ buildPythonPackage, fetchPypi, lib, jq }:
buildPythonPackage rec {
pname = "jq";
2022-02-07 15:18:08 +00:00
version = "1.2.2";
src = fetchPypi {
inherit pname version;
2022-02-07 15:18:08 +00:00
sha256 = "sha256-hqzixD8XtaZKOIh+3nLHuM4qsLz6ge4o/2Q06TUBCr4=";
};
2021-05-07 23:16:04 +00:00
patches = [
# Removes vendoring
./jq-py-setup.patch
];
buildInputs = [ jq ];
# no tests executed
doCheck = false;
pythonImportsCheck = [ "jq" ];
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 ];
};
}