1 { lib, buildPythonPackage, fetchurl, python
7 pythonSuffix = lib.optionalString python.isPy3k "3";
9 buildPythonPackage rec {
11 inherit (xapian) version;
15 url = "https://oligarchy.co.uk/xapian/${version}/xapian-bindings-${version}.tar.xz";
16 hash = "sha256-UT1XhIgnkZis4TrUl1ENKyIgTV15S2QUPQW3vpdOts8=";
20 "--with-python${pythonSuffix}"
21 "PYTHON${pythonSuffix}_LIB=${placeholder "out"}/${python.sitePackages}"
25 export XAPIAN_CONFIG=${xapian}/bin/xapian-config
28 buildInputs = [ sphinx xapian ];
33 ${python.interpreter} python${pythonSuffix}/pythontest.py
37 description = "Python Bindings for Xapian";
38 homepage = "https://xapian.org/";
39 changelog = "https://xapian.org/docs/xapian-bindings-${version}/NEWS";
40 license = licenses.gpl2Plus;
41 maintainers = with maintainers; [ jonringer ];