nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 indexed-gzip,
6 indexed-zstd,
7 libarchive-c,
8 mfusepy,
9 python-xz,
10 rapidgzip,
11 rarfile,
12 ratarmountcore,
13 setuptools,
14}:
15
16buildPythonPackage rec {
17 pname = "ratarmount";
18 version = "1.2.1";
19 pyproject = true;
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-KL4vG5R3uk0NjXXdvCRo/JBpcNNvSUC9ky0aUYGOBqA=";
24 };
25
26 pythonRelaxDeps = [ "python-xz" ];
27
28 build-system = [ setuptools ];
29
30 dependencies = [
31 indexed-gzip
32 indexed-zstd
33 libarchive-c
34 mfusepy
35 python-xz
36 rapidgzip
37 rarfile
38 ratarmountcore
39 ];
40
41 checkPhase = ''
42 runHook preCheck
43
44 python tests/tests.py
45
46 runHook postCheck
47 '';
48
49 meta = {
50 description = "Mounts archives as read-only file systems by way of indexing";
51 homepage = "https://github.com/mxmlnkn/ratarmount";
52 changelog = "https://github.com/mxmlnkn/ratarmount/blob/v${version}/CHANGELOG.md";
53 license = lib.licenses.mit;
54 maintainers = with lib.maintainers; [ mxmlnkn ];
55 mainProgram = "ratarmount";
56 };
57}