depot/third_party/nixpkgs/pkgs/development/python-modules/ratarmount/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

60 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
fusepy,
indexed-gzip,
indexed-zstd,
libarchive-c,
python-xz,
pythonOlder,
rapidgzip,
rarfile,
ratarmountcore,
setuptools,
}:
buildPythonPackage rec {
pname = "ratarmount";
version = "0.15.2";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-1JAj9vA/aZLDvZC7j5PD1OL9n4I0gag4Ezc0i68OQsw=";
};
pythonRelaxDeps = [ "python-xz" ];
build-system = [ setuptools ];
dependencies = [
fusepy
indexed-gzip
indexed-zstd
libarchive-c
python-xz
rapidgzip
rarfile
ratarmountcore
];
checkPhase = ''
runHook preCheck
python tests/tests.py
runHook postCheck
'';
meta = with lib; {
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 = licenses.mit;
maintainers = with lib.maintainers; [ mxmlnkn ];
mainProgram = "ratarmount";
};
}