depot/third_party/nixpkgs/pkgs/development/python-modules/jq/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

39 lines
789 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub, cython, jq, pytestCheckHook }:
buildPythonPackage rec {
pname = "jq";
version = "1.3.0";
src = fetchFromGitHub {
owner = "mwilliamson";
repo = "jq.py";
rev = version;
sha256 = "sha256-1EQm5ShjFHbO1IO5QD42fsGHFGDBrJulLrcl+WeU7wo=";
};
patches = [
# Removes vendoring
./jq-py-setup.patch
];
nativeBuildInputs = [ cython ];
buildInputs = [ jq ];
preBuild = ''
cython jq.pyx
'';
nativeCheckInputs = [
pytestCheckHook
];
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 ];
};
}