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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
783 B
Nix
Raw Normal View History

2022-11-07 23:44:56 +00:00
{ lib, buildPythonPackage, fetchFromGitHub, cython, jq, pytestCheckHook }:
buildPythonPackage rec {
pname = "jq";
2022-11-07 23:44:56 +00:00
version = "1.3.0";
2022-11-07 23:44:56 +00:00
src = fetchFromGitHub {
owner = "mwilliamson";
repo = "jq.py";
rev = version;
sha256 = "sha256-1EQm5ShjFHbO1IO5QD42fsGHFGDBrJulLrcl+WeU7wo=";
};
2021-05-07 23:16:04 +00:00
patches = [
# Removes vendoring
./jq-py-setup.patch
];
2022-11-07 23:44:56 +00:00
nativeBuildInputs = [ cython ];
buildInputs = [ jq ];
2022-11-07 23:44:56 +00:00
preBuild = ''
cython jq.pyx
'';
checkInputs = [
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 ];
};
}