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