2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
dissect-cstruct,
|
|
|
|
dissect-util,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2022-10-21 18:38:19 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dissect-shellitem";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "3.9";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
2022-10-21 18:38:19 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fox-it";
|
|
|
|
repo = "dissect.shellitem";
|
2023-02-16 17:41:37 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-bkh8eiq07cspRQfs1amiyDuFmoXSBwG/fS/6nn9KV/Y=";
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [
|
2022-10-21 18:38:19 +00:00
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [
|
2022-10-21 18:38:19 +00:00
|
|
|
dissect-cstruct
|
|
|
|
dissect-util
|
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-10-21 18:38:19 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
pythonImportsCheck = [ "dissect.shellitem" ];
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Dissect module implementing a parser for the Shellitem structures";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "parse-lnk";
|
2022-10-21 18:38:19 +00:00
|
|
|
homepage = "https://github.com/fox-it/dissect.shellitem";
|
2023-02-16 17:41:37 +00:00
|
|
|
changelog = "https://github.com/fox-it/dissect.shellitem/releases/tag/${version}";
|
2022-10-21 18:38:19 +00:00
|
|
|
license = licenses.agpl3Only;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|