nixpkgs/pkgs/development/python-modules/xapian/default.nix
Martin Weinelt 266c161842
python312Packages: cleanup instances of doCheck = true
This is implicitly the case, and unless `doCheck` is referenced it makes
no sense setting it.
2024-10-26 01:47:02 +02:00

49 lines
1009 B
Nix

{
lib,
buildPythonPackage,
fetchurl,
python,
sphinx,
xapian,
}:
let
pythonSuffix = lib.optionalString python.isPy3k "3";
in
buildPythonPackage rec {
pname = "xapian";
inherit (xapian) version;
format = "other";
src = fetchurl {
url = "https://oligarchy.co.uk/xapian/${version}/xapian-bindings-${version}.tar.xz";
hash = "sha256-VQhzVz7gQBGZ+DX+9R3ficp7wm97jRvcylnaZD+zyoE=";
};
configureFlags = [
"--with-python${pythonSuffix}"
"PYTHON${pythonSuffix}_LIB=${placeholder "out"}/${python.sitePackages}"
];
preConfigure = ''
export XAPIAN_CONFIG=${xapian}/bin/xapian-config
'';
buildInputs = [
sphinx
xapian
];
checkPhase = ''
${python.interpreter} python${pythonSuffix}/pythontest.py
'';
meta = with lib; {
description = "Python Bindings for Xapian";
homepage = "https://xapian.org/";
changelog = "https://xapian.org/docs/xapian-bindings-${version}/NEWS";
license = licenses.gpl2Plus;
maintainers = [ ];
};
}