Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 620 B view raw
1{ buildPythonPackage, fetchPypi, lib, cython, jq }: 2 3buildPythonPackage rec { 4 pname = "jq"; 5 version = "0.1.6"; 6 7 srcs = fetchPypi { 8 inherit pname version; 9 sha256 = "34bdf9f9e49e522e1790afc03f3584c6b57329215ea0567fb2157867d6d6f602"; 10 }; 11 patches = [ ./jq-py-setup.patch ]; 12 13 nativeBuildInputs = [ cython ]; 14 15 preBuild = '' 16 cython jq.pyx 17 ''; 18 19 buildInputs = [ jq ]; 20 21 meta = { 22 description = "Python bindings for jq, the flexible JSON processor"; 23 homepage = "https://github.com/mwilliamson/jq.py"; 24 license = lib.licenses.bsd2; 25 maintainers = with lib.maintainers; [ benley ]; 26 }; 27}