Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 787 B view raw
1{ lib, buildPythonPackage, fetchFromGitHub, cython, jq, pytestCheckHook }: 2 3buildPythonPackage rec { 4 pname = "jq"; 5 version = "1.3.0"; 6 7 src = fetchFromGitHub { 8 owner = "mwilliamson"; 9 repo = "jq.py"; 10 rev = version; 11 hash = "sha256-1EQm5ShjFHbO1IO5QD42fsGHFGDBrJulLrcl+WeU7wo="; 12 }; 13 14 patches = [ 15 # Removes vendoring 16 ./jq-py-setup.patch 17 ]; 18 19 nativeBuildInputs = [ cython ]; 20 21 buildInputs = [ jq ]; 22 23 preBuild = '' 24 cython jq.pyx 25 ''; 26 27 nativeCheckInputs = [ 28 pytestCheckHook 29 ]; 30 31 pythonImportsCheck = [ "jq" ]; 32 33 meta = { 34 description = "Python bindings for jq, the flexible JSON processor"; 35 homepage = "https://github.com/mwilliamson/jq.py"; 36 license = lib.licenses.bsd2; 37 maintainers = with lib.maintainers; [ benley ]; 38 }; 39}