1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
{ lib
, buildPythonPackage
, fetchgit
, pythonOlder
, pytestCheckHook
, indexed-bzip2
, indexed-gzip
, indexed-zstd
, python-xz
, rapidgzip
, rarfile
, zstandard # Python bindings
, zstd # System tool
}:
buildPythonPackage rec {
pname = "ratarmountcore";
version = "0.6.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchgit {
url = "https://github.com/mxmlnkn/ratarmount";
# The revision is hardcoded for now to fix problems with the tests, which are not worthy of a new release
# tag because releases do not officially contain tests. On the next release, use the commented revision,
# which points to a release tag, instead.
#rev = "core-v${version}";
rev = "ea43572dfbac4770a27ef2169f72ff73ee4a4ae9";
hash = "sha256-sPApM5OW+UbujFXHSL4ptMaegajz7FNtXz/KftTlw+U=";
fetchSubmodules = true;
};
sourceRoot = "${src.name}/core";
propagatedBuildInputs = [ indexed-gzip indexed-bzip2 indexed-zstd python-xz rapidgzip rarfile ];
pythonImportsCheck = [ "ratarmountcore" ];
nativeCheckInputs = [ pytestCheckHook zstandard zstd ];
meta = with lib; {
description = "Library for accessing archives by way of indexing";
homepage = "https://github.com/mxmlnkn/ratarmount/tree/master/core";
license = licenses.mit;
maintainers = with lib.maintainers; [ mxmlnkn ];
platforms = platforms.all;
};
}
|