mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-05 19:53:43 +00:00
![Guillaume Girol](/assets/img/avatar_default.png)
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
40 lines
789 B
Nix
40 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 ];
|
|
};
|
|
}
|