1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 hatchling, 7 httpx, 8}: 9 10buildPythonPackage rec { 11 pname = "tika-client"; 12 version = "0.9.0"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.9"; 16 17 src = fetchFromGitHub { 18 owner = "stumpylog"; 19 repo = "tika-client"; 20 tag = version; 21 hash = "sha256-lg6syUbEbPb70iBa4lw5fVN8cvfWY3bkG2jNGxxNLDo="; 22 }; 23 24 build-system = [ hatchling ]; 25 26 dependencies = [ httpx ]; 27 28 pythonImportsCheck = [ "tika_client" ]; 29 30 # Almost all of the tests (all except one in 0.1.0) fail since there 31 # is no tika http API endpoint reachable. Since tika is not yet 32 # packaged for nixpkgs, it seems like an unreasonable amount of effort 33 # fixing these tests. 34 doChecks = false; 35 36 meta = with lib; { 37 description = "Modern Python REST client for Apache Tika server"; 38 homepage = "https://github.com/stumpylog/tika-client"; 39 changelog = "https://github.com/stumpylog/tika-client/blob/${src.tag}/CHANGELOG.md"; 40 license = licenses.mpl20; 41 maintainers = with maintainers; [ e1mo ]; 42 }; 43}