python310Packages.dissect-target: init at 3.1
This commit is contained in:
parent
ffcb18c2ed
commit
df8017a8f5
2 changed files with 112 additions and 0 deletions
110
pkgs/development/python-modules/dissect-target/default.nix
Normal file
110
pkgs/development/python-modules/dissect-target/default.nix
Normal file
|
@ -0,0 +1,110 @@
|
|||
{ lib
|
||||
, asn1crypto
|
||||
, buildPythonPackage
|
||||
, defusedxml
|
||||
, dissect-cim
|
||||
, dissect-clfs
|
||||
, dissect-cstruct
|
||||
, dissect-esedb
|
||||
, dissect-etl
|
||||
, dissect-eventlog
|
||||
, dissect-evidence
|
||||
, dissect-extfs
|
||||
, dissect-fat
|
||||
, dissect-ffs
|
||||
, dissect-hypervisor
|
||||
, dissect-ntfs
|
||||
, dissect-regf
|
||||
, dissect-sql
|
||||
, dissect-util
|
||||
, dissect-volume
|
||||
, dissect-xfs
|
||||
, fetchFromGitHub
|
||||
, flow-record
|
||||
, fusepy
|
||||
, ipython
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, pyyaml
|
||||
, setuptools
|
||||
, setuptools-scm
|
||||
, structlog
|
||||
, yara-python
|
||||
, zstandard
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "dissect-target";
|
||||
version = "3.1";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "fox-it";
|
||||
repo = "dissect.target";
|
||||
rev = version;
|
||||
hash = "sha256-vZzdwkfUMGkrRN0zvDukS5c0RokEyXWgqZENPWF1yXE=";
|
||||
};
|
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dissect-cstruct
|
||||
dissect-eventlog
|
||||
dissect-evidence
|
||||
dissect-hypervisor
|
||||
dissect-ntfs
|
||||
dissect-regf
|
||||
dissect-util
|
||||
dissect-volume
|
||||
flow-record
|
||||
structlog
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
full = [
|
||||
asn1crypto
|
||||
defusedxml
|
||||
dissect-cim
|
||||
dissect-clfs
|
||||
dissect-esedb
|
||||
dissect-etl
|
||||
dissect-extfs
|
||||
dissect-fat
|
||||
dissect-ffs
|
||||
dissect-sql
|
||||
dissect-xfs
|
||||
fusepy
|
||||
ipython
|
||||
pyyaml
|
||||
yara-python
|
||||
zstandard
|
||||
];
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
] ++ passthru.optional-dependencies.full;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"dissect.target"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# Test requires rdump
|
||||
"test_exec_target_command"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Dissect module that provides a programming API and command line tools";
|
||||
homepage = "https://github.com/fox-it/dissect.target";
|
||||
license = licenses.agpl3Only;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -2509,6 +2509,8 @@ in {
|
|||
|
||||
dissect-sql = callPackage ../development/python-modules/dissect-sql { };
|
||||
|
||||
dissect-target = callPackage ../development/python-modules/dissect-target { };
|
||||
|
||||
dissect-util = callPackage ../development/python-modules/dissect-util { };
|
||||
|
||||
dissect-vmfs = callPackage ../development/python-modules/dissect-vmfs { };
|
||||
|
|
Loading…
Reference in a new issue