python312Packages.ratarmount: 0.15.1 -> 0.15.2 (#340695)
This commit is contained in:
@@ -9,18 +9,18 @@
|
||||
buildPythonPackage rec {
|
||||
pname = "python-xz";
|
||||
version = "0.5.0";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-oYjwQ26BFFXxvaYdzp2+bw/BQwM0v/n1r9DmaLs1R3Q=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools-scm ];
|
||||
build-system = [ setuptools-scm ];
|
||||
|
||||
# has no tests
|
||||
# Module has no tests
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "xz" ];
|
||||
@@ -28,6 +28,7 @@ buildPythonPackage rec {
|
||||
meta = with lib; {
|
||||
description = "Pure Python library for seeking within compressed xz files";
|
||||
homepage = "https://github.com/Rogdham/python-xz";
|
||||
changelog = "https://github.com/Rogdham/python-xz/blob/v${version}/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with lib.maintainers; [ mxmlnkn ];
|
||||
platforms = platforms.all;
|
||||
|
||||
@@ -2,26 +2,43 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
pythonOlder,
|
||||
fusepy,
|
||||
indexed-gzip,
|
||||
indexed-zstd,
|
||||
libarchive-c,
|
||||
python-xz,
|
||||
pythonOlder,
|
||||
rapidgzip,
|
||||
rarfile,
|
||||
ratarmountcore,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ratarmount";
|
||||
version = "0.15.1";
|
||||
format = "setuptools";
|
||||
version = "0.15.2";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-hprXZGgE2fpg8Km3gWO60e7teUB4Age5skNPc4p+wIg=";
|
||||
hash = "sha256-1JAj9vA/aZLDvZC7j5PD1OL9n4I0gag4Ezc0i68OQsw=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
ratarmountcore
|
||||
pythonRelaxDeps = [ "python-xz" ];
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
fusepy
|
||||
indexed-gzip
|
||||
indexed-zstd
|
||||
libarchive-c
|
||||
python-xz
|
||||
rapidgzip
|
||||
rarfile
|
||||
ratarmountcore
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
@@ -34,10 +51,10 @@ buildPythonPackage rec {
|
||||
|
||||
meta = with lib; {
|
||||
description = "Mounts archives as read-only file systems by way of indexing";
|
||||
mainProgram = "ratarmount";
|
||||
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 ];
|
||||
platforms = platforms.all;
|
||||
mainProgram = "ratarmount";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -2,53 +2,61 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pythonOlder,
|
||||
pytestCheckHook,
|
||||
indexed-bzip2,
|
||||
indexed-gzip,
|
||||
indexed-zstd,
|
||||
libarchive-c,
|
||||
pytestCheckHook,
|
||||
python-xz,
|
||||
setuptools,
|
||||
pythonOlder,
|
||||
rapidgzip,
|
||||
rarfile,
|
||||
setuptools,
|
||||
zstandard, # Python bindings
|
||||
zstd, # System tool
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ratarmountcore";
|
||||
version = "0.6.3";
|
||||
version = "0.7.2";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
disabled = pythonOlder "3.10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mxmlnkn";
|
||||
repo = "ratarmount";
|
||||
rev = "core-v${version}";
|
||||
hash = "sha256-2jG066BUkhyHRqRyFAucQRJrjXQNw2ccCxERKkltO3Y=";
|
||||
hash = "sha256-2LPGKdofx2ID8BU0dZhGiZ3tUkd+niEVGvTSBFX4InU=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
sourceRoot = "${src.name}/core";
|
||||
|
||||
nativeBuildInputs = [ setuptools ];
|
||||
propagatedBuildInputs = [
|
||||
indexed-gzip
|
||||
indexed-bzip2
|
||||
indexed-zstd
|
||||
python-xz
|
||||
rapidgzip
|
||||
rarfile
|
||||
];
|
||||
build-system = [ setuptools ];
|
||||
|
||||
pythonImportsCheck = [ "ratarmountcore" ];
|
||||
optional-dependencies = {
|
||||
full = [
|
||||
indexed-gzip
|
||||
indexed-zstd
|
||||
python-xz
|
||||
rapidgzip
|
||||
rarfile
|
||||
];
|
||||
_7z = [ libarchive-c ];
|
||||
bzip2 = [ rapidgzip ];
|
||||
gzip = [ indexed-gzip ];
|
||||
rar = [ rarfile ];
|
||||
xz = [ python-xz ];
|
||||
zstd = [ indexed-zstd ];
|
||||
};
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
zstandard
|
||||
zstd
|
||||
];
|
||||
] ++ lib.flatten (builtins.attrValues optional-dependencies);
|
||||
|
||||
pythonImportsCheck = [ "ratarmountcore" ];
|
||||
|
||||
disabledTestPaths = [
|
||||
# Disable this test because for arcane reasons running pytest with nix-build uses 10-100x
|
||||
@@ -60,9 +68,17 @@ buildPythonPackage rec {
|
||||
"tests/test_BlockParallelReaders.py"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# Tests with issues
|
||||
"test_file_versions"
|
||||
"test_stream_compressed"
|
||||
"test_chimera_file"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Library for accessing archives by way of indexing";
|
||||
homepage = "https://github.com/mxmlnkn/ratarmount/tree/master/core";
|
||||
changelog = "https://github.com/mxmlnkn/ratarmount/blob/core-v${version}/core/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with lib.maintainers; [ mxmlnkn ];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user