2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
dissect-cstruct,
|
|
|
|
dissect-util,
|
|
|
|
fetchFromGitHub,
|
|
|
|
lz4,
|
|
|
|
python-lzo,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
|
|
|
zstandard,
|
2023-02-16 17:41:37 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dissect-squashfs";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "1.5";
|
|
|
|
pyproject = true;
|
2023-02-16 17:41:37 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fox-it";
|
|
|
|
repo = "dissect.squashfs";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-eylLBPim3dmo8h95lRmlh8O9m458K07TH2uK+hn3nKs=";
|
2023-02-16 17:41:37 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [
|
2023-02-16 17:41:37 +00:00
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [
|
2023-02-16 17:41:37 +00:00
|
|
|
dissect-cstruct
|
|
|
|
dissect-util
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.optional-dependencies = {
|
|
|
|
full = [
|
|
|
|
lz4
|
|
|
|
python-lzo
|
|
|
|
zstandard
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
pythonImportsCheck = [ "dissect.squashfs" ];
|
2023-02-16 17:41:37 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Dissect module implementing a parser for the SquashFS file system";
|
|
|
|
homepage = "https://github.com/fox-it/dissect.squashfs";
|
|
|
|
changelog = "https://github.com/fox-it/dissect.squashfs/releases/tag/${version}";
|
|
|
|
license = licenses.agpl3Only;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|