nixpkgs/pkgs/development/python-modules/jq/default.nix
2020-08-29 10:22:13 -07:00

28 lines
619 B
Nix

{ buildPythonPackage, fetchPypi, lib, cython, jq }:
buildPythonPackage rec {
pname = "jq";
version = "0.1.8";
src = fetchPypi {
inherit pname version;
sha256 = "9b6bb376237133080185ab556ca2a724e8be5b31946eb2053d4a1f17ae9df9a8";
};
patches = [ ./jq-py-setup.patch ];
nativeBuildInputs = [ cython ];
preBuild = ''
cython jq.pyx
'';
buildInputs = [ 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 ];
};
}