Merge pull request #283939 from fabaff/dissect-target-fix
python311Packages.dissect-target: relax flow-record
This commit is contained in:
commit
465d5a5360
62
pkgs/development/python-modules/dissect-btrfs/default.nix
Normal file
62
pkgs/development/python-modules/dissect-btrfs/default.nix
Normal file
@ -0,0 +1,62 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, dissect-cstruct
|
||||
, dissect-util
|
||||
, fetchFromGitHub
|
||||
, google-crc32c
|
||||
, python-lzo
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
, setuptools-scm
|
||||
, zstandard
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "dissect-btrfs";
|
||||
version = "1.1";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "fox-it";
|
||||
repo = "dissect.btrfs";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-3k0UUkce7bZ3mZ8Umjms4DX63QeBdRPUXpsdaK0VDyc=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dissect-cstruct
|
||||
dissect-util
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
full = [
|
||||
python-lzo
|
||||
zstandard
|
||||
];
|
||||
gcrc32 = [
|
||||
google-crc32c
|
||||
];
|
||||
};
|
||||
|
||||
# Issue with the test file handling
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"dissect.btrfs"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Dissect module implementing a parser for the BTRFS file system";
|
||||
homepage = "https://github.com/fox-it/dissect.btrfs";
|
||||
changelog = "https://github.com/fox-it/dissect.btrfs/releases/tag/${version}";
|
||||
license = licenses.agpl3Only;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -11,9 +11,9 @@
|
||||
buildPythonPackage rec {
|
||||
pname = "dissect-clfs";
|
||||
version = "1.6";
|
||||
format = "pyproject";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "fox-it";
|
||||
|
49
pkgs/development/python-modules/dissect-jffs/default.nix
Normal file
49
pkgs/development/python-modules/dissect-jffs/default.nix
Normal file
@ -0,0 +1,49 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, dissect-cstruct
|
||||
, dissect-util
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
, setuptools-scm
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "dissect-jffs";
|
||||
version = "1.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "fox-it";
|
||||
repo = "dissect.jffs";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-Rj8/WRHNl2IQ6zwvLhqEIEMzk8BH1fv7KQkw1NzoDjI=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dissect-cstruct
|
||||
dissect-util
|
||||
];
|
||||
|
||||
# Test file handling fails
|
||||
doCheck = true;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"dissect.jffs"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Dissect module implementing a parser for the JFFS2 file system";
|
||||
homepage = "https://github.com/fox-it/dissect.jffs";
|
||||
changelog = "https://github.com/fox-it/dissect.jffs/releases/tag/${version}";
|
||||
license = licenses.agpl3Only;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -51,6 +51,11 @@ buildPythonPackage rec {
|
||||
hash = "sha256-vp1upVwohMXFKxlHy5lWmigdq9MUk1UknSsPpCXt50s=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace "flow.record~=" "flow.record>="
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
setuptools-scm
|
||||
|
@ -1,5 +1,6 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, dissect-btrfs
|
||||
, dissect-cim
|
||||
, dissect-clfs
|
||||
, dissect-cobaltstrike
|
||||
@ -8,11 +9,12 @@
|
||||
, dissect-etl
|
||||
, dissect-eventlog
|
||||
, dissect-evidence
|
||||
, dissect-executable
|
||||
, dissect-extfs
|
||||
, dissect-fat
|
||||
, dissect-ffs
|
||||
, dissect-executable
|
||||
, dissect-hypervisor
|
||||
, dissect-jffs
|
||||
, dissect-ntfs
|
||||
, dissect-ole
|
||||
, dissect-regf
|
||||
@ -26,6 +28,7 @@
|
||||
, dissect-xfs
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, pythonRelaxDepsHook
|
||||
, setuptools
|
||||
, setuptools-scm
|
||||
}:
|
||||
@ -33,7 +36,7 @@
|
||||
buildPythonPackage rec {
|
||||
pname = "dissect";
|
||||
version = "3.11";
|
||||
format = "pyproject";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
@ -44,12 +47,16 @@ buildPythonPackage rec {
|
||||
hash = "sha256-6y+p+Ulc1Viu5s1AL/ecVtO4YRnmem/ZleY8xC4CJrU=";
|
||||
};
|
||||
|
||||
pythonRelaxDeps = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
pythonRelaxDepsHook
|
||||
setuptools
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dissect-btrfs
|
||||
dissect-cim
|
||||
dissect-clfs
|
||||
dissect-cobaltstrike
|
||||
@ -63,6 +70,7 @@ buildPythonPackage rec {
|
||||
dissect-fat
|
||||
dissect-ffs
|
||||
dissect-hypervisor
|
||||
dissect-jffs
|
||||
dissect-ntfs
|
||||
dissect-ole
|
||||
dissect-regf
|
||||
|
@ -1,32 +1,50 @@
|
||||
{ lib, fetchPypi, buildPythonPackage, lzo, pytestCheckHook, setuptools, wheel }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, lzo
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
, wheel
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-lzo";
|
||||
version = "1.15";
|
||||
format = "pyproject";
|
||||
version = "1.16";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-pXqqAMXDoFFd2fdCa6LPYBdn3BncAj2LmdShOwoye0k=";
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jd-boyd";
|
||||
repo = "python-lzo";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-iXAvOCzHPvNERMkE5y4QTHi4ZieW1wrYWYScs7zyb2c=";
|
||||
};
|
||||
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
wheel
|
||||
];
|
||||
|
||||
buildInputs = [ lzo ];
|
||||
buildInputs = [
|
||||
lzo
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"lzo"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/jd-boyd/python-lzo";
|
||||
description = "Python bindings for the LZO data compression library";
|
||||
homepage = "https://github.com/jd-boyd/python-lzo";
|
||||
changelog = "https://github.com/jd-boyd/python-lzo/releases/tag/v${version}";
|
||||
license = licenses.gpl2Only;
|
||||
maintainers = [ maintainers.jbedo ];
|
||||
maintainers = with maintainers; [ jbedo ];
|
||||
};
|
||||
}
|
||||
|
@ -2904,6 +2904,8 @@ self: super: with self; {
|
||||
|
||||
dissect = callPackage ../development/python-modules/dissect { };
|
||||
|
||||
dissect-btrfs = callPackage ../development/python-modules/dissect-btrfs { };
|
||||
|
||||
dissect-cim = callPackage ../development/python-modules/dissect-cim { };
|
||||
|
||||
dissect-clfs = callPackage ../development/python-modules/dissect-clfs { };
|
||||
@ -2930,6 +2932,8 @@ self: super: with self; {
|
||||
|
||||
dissect-hypervisor = callPackage ../development/python-modules/dissect-hypervisor { };
|
||||
|
||||
dissect-jffs = callPackage ../development/python-modules/dissect-jffs { };
|
||||
|
||||
dissect-ntfs = callPackage ../development/python-modules/dissect-ntfs { };
|
||||
|
||||
dissect-ole = callPackage ../development/python-modules/dissect-ole { };
|
||||
|
Loading…
Reference in New Issue
Block a user