Merge pull request #66356 from jonringer/add-python-xapian
pythonPackage.xapian: init at 1.4.12
This commit is contained in:
commit
b585bba65c
43
pkgs/development/python-modules/xapian/default.nix
Normal file
43
pkgs/development/python-modules/xapian/default.nix
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
{ 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";
|
||||||
|
sha256 = "0j9awiiw9zf97r60m848absq43k37gghpyw7acxqjazfzd71fxvm";
|
||||||
|
};
|
||||||
|
|
||||||
|
configureFlags = [
|
||||||
|
"--with-python${pythonSuffix}"
|
||||||
|
"PYTHON${pythonSuffix}_LIB=${placeholder "out"}/${python.sitePackages}"
|
||||||
|
];
|
||||||
|
|
||||||
|
preConfigure = ''
|
||||||
|
export XAPIAN_CONFIG=${xapian}/bin/xapian-config
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildInputs = [ sphinx xapian ];
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
${python.interpreter} python${pythonSuffix}/smoketest.py
|
||||||
|
${python.interpreter} python${pythonSuffix}/pythontest.py
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Python Bindings for Xapian";
|
||||||
|
homepage = https://xapian.org/;
|
||||||
|
license = licenses.gpl2Plus;
|
||||||
|
maintainers = with maintainers; [ jonringer ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -5051,6 +5051,8 @@ in {
|
||||||
|
|
||||||
xarray = callPackage ../development/python-modules/xarray { };
|
xarray = callPackage ../development/python-modules/xarray { };
|
||||||
|
|
||||||
|
xapian = callPackage ../development/python-modules/xapian { xapian = pkgs.xapian; };
|
||||||
|
|
||||||
xlwt = callPackage ../development/python-modules/xlwt { };
|
xlwt = callPackage ../development/python-modules/xlwt { };
|
||||||
|
|
||||||
xxhash = callPackage ../development/python-modules/xxhash { };
|
xxhash = callPackage ../development/python-modules/xxhash { };
|
||||||
|
|
Loading…
Reference in a new issue