2021-08-18 13:19:15 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pyyaml
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tika";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "2.6.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-08-18 13:19:15 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-VmcOuBKUTrJe1z8bOwdapB56E1t0skCCLyi4GeWzc9o=";
|
2021-08-18 13:19:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pyyaml requests ];
|
|
|
|
|
|
|
|
# Requires network
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ pname ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A Python binding to the Apache Tika™ REST services";
|
|
|
|
homepage = "https://github.com/chrismattmann/tika-python";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ Flakebi ];
|
|
|
|
};
|
|
|
|
}
|