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