{ lib, buildPythonPackage, fetchPypi, indexed-gzip, indexed-zstd, libarchive-c, mfusepy, python-xz, rapidgzip, rarfile, ratarmountcore, setuptools, }: buildPythonPackage rec { pname = "ratarmount"; version = "1.2.1"; pyproject = true; src = fetchPypi { inherit pname version; hash = "sha256-KL4vG5R3uk0NjXXdvCRo/JBpcNNvSUC9ky0aUYGOBqA="; }; pythonRelaxDeps = [ "python-xz" ]; build-system = [ setuptools ]; dependencies = [ indexed-gzip indexed-zstd libarchive-c mfusepy python-xz rapidgzip rarfile ratarmountcore ]; checkPhase = '' runHook preCheck python tests/tests.py runHook postCheck ''; meta = { description = "Mounts archives as read-only file systems by way of indexing"; homepage = "https://github.com/mxmlnkn/ratarmount"; changelog = "https://github.com/mxmlnkn/ratarmount/blob/v${version}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ mxmlnkn ]; mainProgram = "ratarmount"; }; }