commit
1b60238acd
@ -0,0 +1,86 @@ |
||||
{ lib |
||||
, stdenv |
||||
, fetchurl |
||||
, makeDesktopItem |
||||
, imagemagick |
||||
, p7zip |
||||
, wine |
||||
, writeShellScriptBin |
||||
, symlinkJoin |
||||
, use64 ? false |
||||
}: |
||||
|
||||
let |
||||
pname = "exact-audio-copy"; |
||||
version = "1.6.0"; |
||||
|
||||
eac_exe = fetchurl { |
||||
url = "http://www.exactaudiocopy.de/eac-${lib.versions.majorMinor version}.exe"; |
||||
sha256 = "8291d33104ebab2619ba8d85744083e241330a286f5bd7d54c7b0eb08f2b84c1"; |
||||
}; |
||||
|
||||
cygwin_dll = fetchurl { |
||||
url = "https://cygwin.com/snapshots/x86/cygwin1-20220301.dll.xz"; |
||||
sha256 = "0zxn0r5q69fhciy0mrplhxj1hxwy3sq4k1wdy6n6kyassm4zyz1x"; |
||||
}; |
||||
|
||||
patched_eac = stdenv.mkDerivation { |
||||
pname = "patched_eac"; |
||||
inherit version; |
||||
|
||||
nativeBuildInputs = [ |
||||
imagemagick |
||||
p7zip |
||||
]; |
||||
|
||||
buildCommand = '' |
||||
mkdir -p $out |
||||
_tmp=$(mktemp -d) |
||||
cd $_tmp |
||||
7z x -aoa ${eac_exe} |
||||
chmod -R 755 . |
||||
cp ${cygwin_dll} cygwin1.dll.xz |
||||
xz --decompress cygwin1.dll.xz |
||||
mv cygwin1.dll CDRDAO/ |
||||
cp -r * $out |
||||
7z x EAC.exe |
||||
convert .rsrc/1033/ICON/29.ico -thumbnail 128x128 -alpha on -background none -flatten "$out/eac.ico.128.png" |
||||
''; |
||||
}; |
||||
|
||||
wrapper = writeShellScriptBin pname '' |
||||
export WINEPREFIX="''${EXACT_AUDIO_COPY_HOME:-"''${XDG_DATA_HOME:-"''${HOME}/.local/share"}/exact-audio-copy"}/wine" |
||||
export WINEARCH=${if use64 then "win64" else "win32"} |
||||
export WINEDLLOVERRIDES="mscoree=" # disable mono |
||||
export WINEDEBUG=-all |
||||
if [ ! -d "$WINEPREFIX" ] ; then |
||||
mkdir -p "$WINEPREFIX" |
||||
${wine}/bin/wineboot -u |
||||
fi |
||||
|
||||
exec ${wine}/bin/wine ${patched_eac}/EAC.exe "$@" |
||||
''; |
||||
|
||||
desktopItem = makeDesktopItem { |
||||
name = pname; |
||||
exec = pname; |
||||
comment = "Audio Grabber for CDs"; |
||||
desktopName = "Exact Audio Copy"; |
||||
categories = [ "Audio" "AudioVideo" ]; |
||||
icon = "${patched_eac}/eac.ico.128.png"; |
||||
}; |
||||
in |
||||
symlinkJoin { |
||||
name = "${pname}-${version}"; |
||||
|
||||
paths = [ wrapper desktopItem ]; |
||||
|
||||
meta = with lib; { |
||||
description = "A precise CD audio grabber for creating perfect quality rips using CD and DVD drives"; |
||||
homepage = "https://www.exactaudiocopy.de/"; |
||||
changelog = "https://www.exactaudiocopy.de/en/index.php/resources/whats-new/whats-new/"; |
||||
license = licenses.unfree; |
||||
maintainers = [ maintainers.brendanreis ]; |
||||
platforms = wine.meta.platforms; |
||||
}; |
||||
} |
@ -0,0 +1,59 @@ |
||||
{ lib |
||||
, stdenv |
||||
, fetchFromGitHub |
||||
, qmake |
||||
, qtbase |
||||
, pkg-config |
||||
, sigutils |
||||
, fftwSinglePrec |
||||
, suwidgets |
||||
, wrapQtAppsHook |
||||
, suscan |
||||
, libsndfile |
||||
, soapysdr-with-plugins |
||||
, libxml2 |
||||
, volk |
||||
}: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
pname = "sigdigger"; |
||||
version = "0.3.0"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "BatchDrake"; |
||||
repo = "SigDigger"; |
||||
rev = "v${version}"; |
||||
sha256 = "sha256-dS+Fc0iQz7GIlGaR556Ur/EQh3Uzhqm9uBW42IuEqoE="; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ |
||||
qmake |
||||
pkg-config |
||||
wrapQtAppsHook |
||||
]; |
||||
|
||||
buildInputs = [ |
||||
qtbase |
||||
sigutils |
||||
fftwSinglePrec |
||||
suwidgets |
||||
suscan |
||||
libsndfile |
||||
libxml2 |
||||
volk |
||||
soapysdr-with-plugins |
||||
]; |
||||
|
||||
qmakeFlags = [ |
||||
"SUWIDGETS_PREFIX=${suwidgets}" |
||||
"SigDigger.pro" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Qt-based digital signal analyzer, using Suscan core and Sigutils DSP library"; |
||||
homepage = "https://github.com/BatchDrake/SigDigger"; |
||||
license = licenses.gpl3; |
||||
platforms = platforms.all; |
||||
maintainers = with maintainers; [ polygon oxapentane ]; |
||||
}; |
||||
} |
@ -0,0 +1,40 @@ |
||||
{ lib |
||||
, stdenv |
||||
, fetchFromGitHub |
||||
, cmake |
||||
, pkg-config |
||||
, fftwSinglePrec |
||||
, libsndfile |
||||
, volk |
||||
}: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
pname = "sigutils"; |
||||
version = "unstable-2022-07-05"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "BatchDrake"; |
||||
repo = "sigutils"; |
||||
rev = "1d7559d427aadd253dd825eef26bf15e54860c5f"; |
||||
sha256 = "sha256-wvd6sixwGmR9R4x+swLVqXre4Dqnj10jZIXUfaJcmBw="; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ |
||||
cmake |
||||
pkg-config |
||||
]; |
||||
|
||||
buildInputs = [ |
||||
fftwSinglePrec |
||||
libsndfile |
||||
volk |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Small signal processing utility library"; |
||||
homepage = "https://github.com/BatchDrake/sigutils"; |
||||
license = licenses.gpl3; |
||||
platforms = platforms.all; |
||||
maintainers = with maintainers; [ polygon oxapentane ]; |
||||
}; |
||||
} |
@ -0,0 +1,50 @@ |
||||
{ lib |
||||
, stdenv |
||||
, fetchFromGitHub |
||||
, cmake |
||||
, pkg-config |
||||
, fftwSinglePrec |
||||
, libsndfile |
||||
, sigutils |
||||
, soapysdr-with-plugins |
||||
, libxml2 |
||||
, volk |
||||
}: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
pname = "suscan"; |
||||
version = "unstable-2022-07-05"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "BatchDrake"; |
||||
repo = "suscan"; |
||||
rev = "37dad542b97aff24654f0bb80fb8e85af7cb84ab"; |
||||
sha256 = "sha256-h1ogtYjkqiHb1/NAJfJ0HQIvGnZM2K/PSP5nqLXUf9M="; |
||||
}; |
||||
|
||||
postPatch = '' |
||||
sed -i 's/fftw3 >= 3.0/fftw3f >= 3.0/' suscan.pc.in |
||||
''; |
||||
|
||||
nativeBuildInputs = [ |
||||
cmake |
||||
pkg-config |
||||
]; |
||||
|
||||
buildInputs = [ |
||||
fftwSinglePrec |
||||
libsndfile |
||||
sigutils |
||||
soapysdr-with-plugins |
||||
libxml2 |
||||
volk |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Channel scanner based on sigutils library"; |
||||
homepage = "https://github.com/BatchDrake/suscan"; |
||||
license = licenses.gpl3; |
||||
platforms = platforms.all; |
||||
maintainers = with maintainers; [ polygon oxapentane ]; |
||||
}; |
||||
} |
@ -0,0 +1,51 @@ |
||||
{ lib |
||||
, stdenv |
||||
, fetchFromGitHub |
||||
, qmake |
||||
, qtbase |
||||
, pkg-config |
||||
, sigutils |
||||
, fftwSinglePrec |
||||
}: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
pname = "suwidgets"; |
||||
version = "unstable-2022-04-03"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "BatchDrake"; |
||||
repo = "SuWidgets"; |
||||
rev = "826b3eeae5b682dc063f53b427caa9c7c48131ea"; |
||||
sha256 = "sha256-cyFLsP+8GbALdlgEnVX4201Qq/KAxb/Vv+sJqbFpvUk="; |
||||
}; |
||||
|
||||
dontWrapQtApps = true; |
||||
|
||||
postPatch = '' |
||||
substituteInPlace SuWidgets.pri \ |
||||
--replace "PKGCONFIG += sigutils fftw3" "PKGCONFIG += sigutils fftw3f" |
||||
''; |
||||
|
||||
nativeBuildInputs = [ |
||||
qmake |
||||
pkg-config |
||||
]; |
||||
|
||||
buildInputs = [ |
||||
qtbase |
||||
sigutils |
||||
fftwSinglePrec |
||||
]; |
||||
|
||||
qmakeFlags = [ |
||||
"SuWidgetsLib.pro" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Sigutils-related widgets"; |
||||
homepage = "https://github.com/BatchDrake/SuWidgets"; |
||||
license = licenses.gpl3; |
||||
platforms = platforms.all; |
||||
maintainers = with maintainers; [ polygon oxapentane ]; |
||||
}; |
||||
} |
@ -0,0 +1,70 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, defusedxml |
||||
, dissect-cstruct |
||||
, dissect-target |
||||
, fetchFromGitHub |
||||
, minio |
||||
, pycryptodome |
||||
, pytestCheckHook |
||||
, pythonOlder |
||||
, requests |
||||
, requests-toolbelt |
||||
, rich |
||||
, setuptools |
||||
, setuptools-scm |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "acquire"; |
||||
version = "3.2"; |
||||
format = "pyproject"; |
||||
|
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "fox-it"; |
||||
repo = "acquire"; |
||||
rev = version; |
||||
hash = "sha256-YwmrdqWG5qD621+jQMVyTM0Uy0yXCVPv9zfVhZ+ohg0="; |
||||
}; |
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version; |
||||
|
||||
nativeBuildInputs = [ |
||||
setuptools |
||||
setuptools-scm |
||||
]; |
||||
|
||||
propagatedBuildInputs = [ |
||||
defusedxml |
||||
dissect-cstruct |
||||
dissect-target |
||||
]; |
||||
|
||||
passthru.optional-dependencies = { |
||||
full = [ |
||||
dissect-target |
||||
minio |
||||
pycryptodome |
||||
requests |
||||
requests-toolbelt |
||||
rich |
||||
] ++ dissect-target.optional-dependencies.full; |
||||
}; |
||||
|
||||
checkInputs = [ |
||||
pytestCheckHook |
||||
] ++ passthru.optional-dependencies.full; |
||||
|
||||
pythonImportsCheck = [ |
||||
"acquire" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Tool to quickly gather forensic artifacts from disk images or a live system"; |
||||
homepage = "https://github.com/fox-it/acquire"; |
||||
license = licenses.agpl3Only; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
@ -0,0 +1,52 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, dissect-cstruct |
||||
, dissect-util |
||||
, fetchFromGitHub |
||||
, setuptools |
||||
, setuptools-scm |
||||
, pytestCheckHook |
||||
, pythonOlder |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "dissect-cim"; |
||||
version = "3.2"; |
||||
format = "pyproject"; |
||||
|
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "fox-it"; |
||||
repo = "dissect.cim"; |
||||
rev = version; |
||||
hash = "sha256-rWlAYndqqZ6l/iwk1u2gG0mtQHvAMYUUEWo23hLykXI="; |
||||
}; |
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version; |
||||
|
||||
nativeBuildInputs = [ |
||||
setuptools |
||||
setuptools-scm |
||||
]; |
||||
|
||||
propagatedBuildInputs = [ |
||||
dissect-cstruct |
||||
dissect-util |
||||
]; |
||||
|
||||
checkInputs = [ |
||||
pytestCheckHook |
||||
]; |
||||
|
||||
pythonImportsCheck = [ |
||||
"dissect.cim" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Dissect module implementing a parser for the Windows Common Information Model (CIM) database"; |
||||
homepage = "https://github.com/fox-it/dissect.cim"; |
||||
license = licenses.agpl3Only; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
@ -0,0 +1,50 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, dissect-cstruct |
||||
, fetchFromGitHub |
||||
, setuptools |
||||
, setuptools-scm |
||||
, pytestCheckHook |
||||
, pythonOlder |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "dissect-clfs"; |
||||
version = "1.1"; |
||||
format = "pyproject"; |
||||
|
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "fox-it"; |
||||
repo = "dissect.clfs"; |
||||
rev = version; |
||||
hash = "sha256-5rG8YiVBU4ETLgQoFnMaeXHttIB26+OhIdYjKDKmPBc="; |
||||
}; |
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version; |
||||
|
||||
nativeBuildInputs = [ |
||||
setuptools |
||||
setuptools-scm |
||||
]; |
||||
|
||||
propagatedBuildInputs = [ |
||||
dissect-cstruct |
||||
]; |
||||
|
||||
checkInputs = [ |
||||
pytestCheckHook |
||||
]; |
||||
|
||||
pythonImportsCheck = [ |
||||
"dissect.clfs" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Dissect module implementing a parser for the CLFS (Common Log File System) file system"; |
||||
homepage = "https://github.com/fox-it/dissect.clfs"; |
||||
license = licenses.agpl3Only; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
@ -0,0 +1,45 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, fetchFromGitHub |
||||
, setuptools |
||||
, setuptools-scm |
||||
, pytestCheckHook |
||||
, pythonOlder |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "dissect-cstruct"; |
||||
version = "3.2"; |
||||
format = "pyproject"; |
||||
|
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "fox-it"; |
||||
repo = "dissect.cstruct"; |
||||
rev = version; |
||||
hash = "sha256-iP00EcEkUWoYi+SCo/gY9LSVtCSQZ3g2wMs4Z8m+X2M="; |
||||
}; |
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version; |
||||
|
||||
nativeBuildInputs = [ |
||||
setuptools |
||||
setuptools-scm |
||||
]; |
||||
|
||||
checkInputs = [ |
||||
pytestCheckHook |
||||
]; |
||||
|
||||
pythonImportsCheck = [ |
||||
"dissect.cstruct" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Dissect module implementing a parser for C-like structures"; |
||||
homepage = "https://github.com/fox-it/dissect.cstruct"; |
||||
license = licenses.agpl3Only; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
@ -0,0 +1,52 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, dissect-cstruct |
||||
, dissect-util |
||||
, fetchFromGitHub |
||||
, pytestCheckHook |
||||
, pythonOlder |
||||
, setuptools |
||||
, setuptools-scm |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "dissect-esedb"; |
||||
version = "3.2"; |
||||
format = "pyproject"; |
||||
|
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "fox-it"; |
||||
repo = "dissect.esedb"; |
||||
rev = version; |
||||
hash = "sha256-DLu6FCWqeESFlsIB21jN/IKCwSKlBoibildv07/hPcw="; |
||||
}; |
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version; |
||||
|
||||
nativeBuildInputs = [ |
||||
setuptools |
||||
setuptools-scm |
||||
]; |
||||
|
||||
propagatedBuildInputs = [ |
||||
dissect-cstruct |
||||
dissect-util |
||||
]; |
||||
|
||||
checkInputs = [ |
||||
pytestCheckHook |
||||
]; |
||||
|
||||
pythonImportsCheck = [ |
||||
"dissect.esedb" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Dissect module implementing a parser for Microsofts Extensible Storage Engine Database (ESEDB)"; |
||||
homepage = "https://github.com/fox-it/dissect.esedb"; |
||||
license = licenses.agpl3Only; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
@ -0,0 +1,52 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, dissect-cstruct |
||||
, dissect-util |
||||
, fetchFromGitHub |
||||
, setuptools |
||||
, setuptools-scm |
||||
, pytestCheckHook |
||||
, pythonOlder |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "dissect-etl"; |
||||
version = "3.1"; |
||||
format = "pyproject"; |
||||
|
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "fox-it"; |
||||
repo = "dissect.etl"; |
||||
rev = version; |
||||
hash = "sha256-EqEYw2MpNjdw8nXkxe76R5y99Y+rsK42qfTpT/kxtZ0="; |
||||
}; |
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version; |
||||
|
||||
nativeBuildInputs = [ |
||||
setuptools |
||||
setuptools-scm |
||||
]; |
||||
|
||||
propagatedBuildInputs = [ |
||||
dissect-cstruct |
||||
dissect-util |
||||
]; |
||||
|
||||
checkInputs = [ |
||||
pytestCheckHook |
||||
]; |
||||
|
||||
pythonImportsCheck = [ |
||||
"dissect.etl" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Dissect module implementing a parser for Event Trace Log (ETL) files"; |
||||
homepage = "https://github.com/fox-it/dissect.etl"; |
||||
license = licenses.agpl3Only; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
@ -0,0 +1,52 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, dissect-cstruct |
||||
, dissect-util |
||||
, fetchFromGitHub |
||||
, setuptools |
||||
, setuptools-scm |
||||
, pytestCheckHook |
||||
, pythonOlder |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "dissect-eventlog"; |
||||
version = "3.1"; |
||||
format = "pyproject"; |
||||
|
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "fox-it"; |
||||
repo = "dissect.eventlog"; |
||||
rev = version; |
||||
hash = "sha256-cLIsK2/pL9nNOitoTZprqAio1BOo3/Uqfbl8uL/1tG4="; |
||||
}; |
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version; |
||||
|
||||
nativeBuildInputs = [ |
||||
setuptools |
||||
setuptools-scm |
||||
]; |
||||
|
||||
propagatedBuildInputs = [ |
||||
dissect-cstruct |
||||
dissect-util |
||||
]; |
||||
|
||||
checkInputs = [ |
||||
pytestCheckHook |
||||
]; |
||||
|
||||
pythonImportsCheck = [ |
||||
"dissect.eventlog" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Dissect module implementing parsers for the Windows EVT, EVTX and WEVT log file formats"; |
||||
homepage = "https://github.com/fox-it/dissect.eventlog"; |
||||
license = licenses.agpl3Only; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
@ -0,0 +1,52 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, dissect-cstruct |
||||
, dissect-util |
||||
, fetchFromGitHub |
||||
, setuptools |
||||
, setuptools-scm |
||||
, pytestCheckHook |
||||
, pythonOlder |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "dissect-evidence"; |
||||
version = "3.1"; |
||||
format = "pyproject"; |
||||
|
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "fox-it"; |
||||
repo = "dissect.evidence"; |
||||
rev = version; |
||||
hash = "sha256-X0WMv96Wo3vDZ6HYGdWfn7OKhFuT5Qjzkyj4HzMqCiM="; |
||||
}; |
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version; |
||||
|
||||
nativeBuildInputs = [ |
||||
setuptools |
||||
setuptools-scm |
||||
]; |
||||
|
||||
propagatedBuildInputs = [ |
||||
dissect-cstruct |
||||
dissect-util |
||||
]; |
||||
|
||||
checkInputs = [ |
||||
pytestCheckHook |
||||
]; |
||||
|
||||
pythonImportsCheck = [ |
||||
"dissect.evidence" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Dissect module implementing a parsers for various forensic evidence file containers"; |
||||
homepage = "https://github.com/fox-it/dissect.evidence"; |
||||
license = licenses.agpl3Only; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
@ -0,0 +1,52 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, dissect-cstruct |
||||
, dissect-util |
||||
, fetchFromGitHub |
||||
, setuptools |
||||
, setuptools-scm |
||||
, pytestCheckHook |
||||
, pythonOlder |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "dissect-extfs"; |
||||
version = "3.1"; |
||||
format = "pyproject"; |
||||
|
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "fox-it"; |
||||
repo = "dissect.extfs"; |
||||
rev = version; |
||||
hash = "sha256-i52hlTh0uJJcprA6oVlFQ3v6BpOtSnQAQ0p6BHt56Ac="; |
||||
}; |
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version; |
||||
|
||||
nativeBuildInputs = [ |
||||
setuptools |
||||
setuptools-scm |
||||
]; |
||||
|
||||
propagatedBuildInputs = [ |
||||
dissect-cstruct |
||||
dissect-util |
||||
]; |
||||
|
||||
checkInputs = [ |
||||
pytestCheckHook |
||||
]; |
||||
|
||||
pythonImportsCheck = [ |
||||
"dissect.extfs" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Dissect module implementing a parser for the ExtFS file system"; |
||||
homepage = "https://github.com/fox-it/dissect.extfs"; |
||||
license = licenses.agpl3Only; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
@ -0,0 +1,50 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, dissect-cstruct |
||||
, dissect-util |
||||
, fetchFromGitHub |
||||
, setuptools |
||||
, setuptools-scm |
||||
, pythonOlder |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "dissect-fat"; |
||||
version = "3.1"; |
||||
format = "pyproject"; |
||||
|
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "fox-it"; |
||||
repo = "dissect.fat"; |
||||
rev = version; |
||||
hash = "sha256-GBeacQtNA1onh67Svqo5R43gap/Lzpm+20TXcUMmU5k="; |
||||
}; |
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version; |
||||
|
||||
nativeBuildInputs = [ |
||||
setuptools |
||||
setuptools-scm |
||||
]; |
||||
|
||||
propagatedBuildInputs = [ |
||||
dissect-cstruct |
||||
dissect-util |
||||
]; |
||||
|
||||
# dissect.fat.exceptions.InvalidBPB: Invalid BS_jmpBoot |
||||
doCheck = false; |
||||
|
||||
pythonImportsCheck = [ |
||||
"dissect.fat" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Dissect module implementing a parser for the FAT file system"; |
||||
homepage = "https://github.com/fox-it/dissect.fat"; |
||||
license = licenses.agpl3Only; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
@ -0,0 +1,52 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, dissect-cstruct |
||||
, dissect-util |
||||
, fetchFromGitHub |
||||
, setuptools |
||||
, setuptools-scm |
||||
, pytestCheckHook |
||||
, pythonOlder |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "dissect-ffs"; |
||||
version = "3.1"; |
||||
format = "pyproject"; |
||||
|
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "fox-it"; |
||||
repo = "dissect.ffs"; |
||||
rev = version; |
||||
hash = "sha256-JI0i0pvOOChWCDB8rynDuf0txvPQT7z2JJ1EsE4VNLw="; |
||||
}; |
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version; |
||||
|
||||
nativeBuildInputs = [ |
||||
setuptools |
||||
setuptools-scm |
||||
]; |
||||
|
||||
propagatedBuildInputs = [ |
||||
dissect-cstruct |
||||
dissect-util |
||||
]; |
||||
|
||||
checkInputs = [ |
||||
pytestCheckHook |
||||
]; |
||||
|
||||
pythonImportsCheck = [ |
||||
"dissect.ffs" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Dissect module implementing a parser for the FFS file system"; |
||||
homepage = "https://github.com/fox-it/dissect.ffs"; |
||||
license = licenses.agpl3Only; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
@ -0,0 +1,61 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, dissect-cstruct |
||||
, dissect-util |
||||
, fetchFromGitHub |
||||
, pycryptodome |
||||
, pytestCheckHook |
||||
, pythonOlder |
||||
, rich |
||||
, setuptools |
||||
, setuptools-scm |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "dissect-hypervisor"; |
||||
version = "3.2"; |
||||
format = "pyproject"; |
||||
|
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "fox-it"; |
||||
repo = "dissect.hypervisor"; |
||||
rev = version; |
||||
hash = "sha256-yc9QfzvWX8jsRVZYglZZuMfxsYUoPr5gf407DABjQcU="; |
||||
}; |
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version; |
||||
|
||||
nativeBuildInputs = [ |
||||
setuptools |
||||
setuptools-scm |
||||
]; |
||||
|
||||
propagatedBuildInputs = [ |
||||
dissect-cstruct |
||||
dissect-util |
||||
]; |
||||
|
||||
passthru.optional-dependencies = { |
||||
full = [ |
||||
pycryptodome |
||||
rich |
||||
]; |
||||
}; |
||||
|
||||
checkInputs = [ |
||||
pytestCheckHook |
||||
]; |
||||
|
||||
pythonImportsCheck = [ |
||||
"dissect.hypervisor" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Dissect module implementing parsers for various hypervisor disk, backup and configuration files"; |
||||
homepage = "https://github.com/fox-it/dissect.hypervisor"; |
||||
license = licenses.agpl3Only; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
@ -0,0 +1,57 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, dissect-cstruct |
||||
, dissect-util |
||||
, fetchFromGitHub |
||||
, setuptools |
||||
, setuptools-scm |
||||
, pytestCheckHook |
||||
, pythonOlder |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "dissect-ntfs"; |
||||
version = "3.1"; |
||||
format = "pyproject"; |
||||
|
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "fox-it"; |
||||
repo = "dissect.ntfs"; |
||||
rev = version; |
||||
hash = "sha256-hZz/v6qLZnbsZkS/cBU/to4XmZNgUJQwCaPkY2ebl4Q="; |
||||
}; |
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version; |
||||
|
||||
nativeBuildInputs = [ |
||||
setuptools |
||||
setuptools-scm |
||||
]; |
||||
|
||||
propagatedBuildInputs = [ |
||||
dissect-cstruct |
||||
dissect-util |
||||
]; |
||||
|
||||
checkInputs = [ |
||||
pytestCheckHook |
||||
]; |
||||
|
||||
pythonImportsCheck = [ |
||||
"dissect.ntfs" |
||||
]; |
||||
|
||||
disabledTestPaths = [ |
||||
# Test is very time consuming |
||||
"tests/test_index.py" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Dissect module implementing a parser for the NTFS file system"; |
||||
homepage = "https://github.com/fox-it/dissect.ntfs"; |
||||
license = licenses.agpl3Only; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
@ -0,0 +1,50 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, dissect-cstruct |
||||
, dissect-util |
||||
, fetchFromGitHub |
||||
, setuptools |
||||
, setuptools-scm |
||||
, pythonOlder |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "dissect-ole"; |
||||
version = "3.1"; |
||||
format = "pyproject"; |
||||
|
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "fox-it"; |
||||
repo = "dissect.ole"; |
||||
rev = version; |
||||
hash = "sha256-qnrbS+gdzBV/mQ08fQzpvevkDtrJ1qXpteW0lxJ+ZUI="; |
||||
}; |
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version; |
||||
|
||||
nativeBuildInputs = [ |
||||
setuptools |
||||
setuptools-scm |
||||
]; |
||||
|
||||
propagatedBuildInputs = [ |
||||
dissect-cstruct |
||||
dissect-util |
||||
]; |
||||
|
||||
# Module has no tests |
||||
doCheck = false; |
||||
|
||||
pythonImportsCheck = [ |
||||
"dissect.ole" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Dissect module implementing a parser for the Object Linking & Embedding (OLE) format"; |
||||
homepage = "https://github.com/fox-it/dissect.ole"; |
||||
license = licenses.agpl3Only; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
@ -0,0 +1,52 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, dissect-cstruct |
||||
, dissect-util |
||||
, fetchFromGitHub |
||||
, setuptools |
||||
, setuptools-scm |
||||
, pytestCheckHook |
||||
, pythonOlder |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "dissect-regf"; |
||||
version = "3.1"; |
||||
format = "pyproject"; |
||||
|
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "fox-it"; |
||||
repo = "dissect.regf"; |
||||
rev = version; |
||||
hash = "sha256-88qG90jza0EVP5dgz09ZA8Z+zFwqanOODlUgsvkMxGo="; |
||||
}; |
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version; |
||||
|
||||
nativeBuildInputs = [ |
||||
setuptools |
||||
setuptools-scm |
||||
]; |
||||
|
||||
propagatedBuildInputs = [ |
||||
dissect-cstruct |
||||
dissect-util |
||||
]; |
||||
|
||||
checkInputs = [ |
||||
pytestCheckHook |
||||
]; |
||||
|
||||
pythonImportsCheck = [ |
||||
"dissect.regf" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Dissect module implementing a parser for Windows registry file format"; |
||||
homepage = "https://github.com/fox-it/dissect.regf"; |
||||
license = licenses.agpl3Only; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
@ -0,0 +1,52 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, dissect-cstruct |
||||
, dissect-util |
||||
, fetchFromGitHub |
||||
, setuptools |
||||
, setuptools-scm |
||||
, pytestCheckHook |
||||
, pythonOlder |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "dissect-shellitem"; |
||||
version = "3.1"; |
||||
format = "pyproject"; |
||||
|
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "fox-it"; |
||||
repo = "dissect.shellitem"; |
||||
rev = version; |
||||
hash = "sha256-HVnfHsD1V+4kWt9qOClsKuIZMpX4VKrr/5eD7KRq5ww="; |
||||
}; |
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version; |
||||
|
||||
nativeBuildInputs = [ |
||||
setuptools |
||||
setuptools-scm |
||||
]; |
||||
|
||||
propagatedBuildInputs = [ |
||||
dissect-cstruct |
||||
dissect-util |
||||
]; |
||||
|
||||
checkInputs = [ |
||||
pytestCheckHook |
||||
]; |
||||
|
||||
pythonImportsCheck = [ |
||||
"dissect.shellitem" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Dissect module implementing a parser for the Shellitem structures"; |
||||
homepage = "https://github.com/fox-it/dissect.shellitem"; |
||||
license = licenses.agpl3Only; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
@ -0,0 +1,52 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, dissect-cstruct |
||||
, dissect-util |
||||
, fetchFromGitHub |
||||
, pytestCheckHook |
||||
, pythonOlder |
||||
, setuptools |
||||
, setuptools-scm |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "dissect-sql"; |
||||
version = "3.1"; |
||||
format = "pyproject"; |
||||
|
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "fox-it"; |
||||
repo = "dissect.sql"; |
||||
rev = version; |
||||
hash = "sha256-uKCCwTFLQSos+L0qc1pFlF3O4FV13up0qFqDYdTZJBk="; |
||||
}; |
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version; |
||||
|
||||
nativeBuildInputs = [ |
||||
setuptools |
||||
setuptools-scm |
||||
]; |
||||
|
||||
propagatedBuildInputs = [ |
||||
dissect-cstruct |
||||
dissect-util |
||||
]; |
||||
|
||||
checkInputs = [ |
||||
pytestCheckHook |
||||
]; |
||||
|
||||
pythonImportsCheck = [ |
||||
"dissect.sql" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Dissect module implementing a parsers for the SQLite database file format"; |
||||
homepage = "https://github.com/fox-it/dissect.sql"; |
||||
license = licenses.agpl3Only; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
@ -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.3"; |
||||
format = "pyproject"; |
||||
|
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "fox-it"; |
||||
repo = "dissect.target"; |
||||
rev = version; |
||||
hash = "sha256-EWUYN2OsYeDo3C+QgjAVq9NXiVk1KWGILwtT0cI0tB0="; |
||||
}; |
||||
|
||||
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 ]; |
||||
}; |
||||
} |
@ -0,0 +1,45 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, fetchFromGitHub |
||||
, setuptools |
||||
, setuptools-scm |
||||
, pytestCheckHook |
||||
, pythonOlder |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "dissect-util"; |
||||
version = "3.2"; |
||||
format = "pyproject"; |
||||
|
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "fox-it"; |
||||
repo = "dissect.util"; |
||||
rev = version; |
||||
hash = "sha256-vit+SQ368limLvdVP/0eVINiEAY/dzD/simHFw489Ck="; |
||||
}; |
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version; |
||||
|
||||
nativeBuildInputs = [ |
||||
setuptools |
||||
setuptools-scm |
||||
]; |
||||
|
||||
checkInputs = [ |
||||
pytestCheckHook |
||||
]; |
||||
|
||||
pythonImportsCheck = [ |
||||
"dissect.util" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Dissect module implementing various utility functions for the other Dissect modules"; |
||||
homepage = "https://github.com/fox-it/dissect.util"; |
||||
license = licenses.agpl3Only; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
@ -0,0 +1,52 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, dissect-cstruct |
||||
, dissect-util |
||||
, fetchFromGitHub |
||||
, setuptools |
||||
, setuptools-scm |
||||
, pytestCheckHook |
||||
, pythonOlder |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "dissect-vmfs"; |
||||
version = "3.1"; |
||||
format = "pyproject"; |
||||
|
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "fox-it"; |
||||
repo = "dissect.vmfs"; |
||||
rev = version; |
||||
hash = "sha256-JVJvuH+ZTlGOnmTSB/nnBuMrc/VtkKVrLDRYnukDXBA="; |
||||
}; |
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version; |
||||
|
||||
nativeBuildInputs = [ |
||||
setuptools |
||||
setuptools-scm |
||||
]; |
||||
|
||||
propagatedBuildInputs = [ |
||||
dissect-cstruct |
||||
dissect-util |
||||
]; |
||||
|
||||
checkInputs = [ |
||||
pytestCheckHook |
||||
]; |
||||
|
||||
pythonImportsCheck = [ |
||||
"dissect.vmfs" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Dissect module implementing a parser for the VMFS file system"; |
||||
homepage = "https://github.com/fox-it/dissect.vmfs"; |
||||
license = licenses.agpl3Only; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
@ -0,0 +1,52 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, dissect-cstruct |
||||
, dissect-util |
||||
, fetchFromGitHub |
||||
, setuptools |
||||
, setuptools-scm |
||||
, pytestCheckHook |
||||
, pythonOlder |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "dissect-volume"; |
||||
version = "3.1"; |
||||
format = "pyproject"; |
||||
|
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "fox-it"; |
||||
repo = "dissect.volume"; |
||||
rev = version; |
||||
hash = "sha256-9SbluaB2wV4gOCry5c7ZLABMwhGfnYg7dTPdKMXYSZM="; |
||||
}; |
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version; |
||||
|
||||
nativeBuildInputs = [ |
||||
setuptools |
||||
setuptools-scm |
||||
]; |
||||
|
||||
propagatedBuildInputs = [ |
||||
dissect-cstruct |
||||
dissect-util |
||||
]; |
||||
|
||||
checkInputs = [ |
||||
pytestCheckHook |
||||
]; |
||||
|
||||
pythonImportsCheck = [ |
||||
"dissect.volume" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Dissect module implementing various utility functions for the other Dissect modules"; |
||||
homepage = "https://github.com/fox-it/dissect.volume"; |
||||
license = licenses.agpl3Only; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
@ -0,0 +1,52 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, dissect-cstruct |
||||
, dissect-util |
||||
, fetchFromGitHub |
||||
, setuptools |
||||
, setuptools-scm |
||||
, pytestCheckHook |
||||
, pythonOlder |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "dissect-xfs"; |
||||
version = "3.1"; |
||||
format = "pyproject"; |
||||
|
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "fox-it"; |
||||
repo = "dissect.xfs"; |
||||
rev = version; |
||||
hash = "sha256-Tg4su78Na6IAQhi7aOY8QNs3tnYOYvdnNQV6rn8QpSE="; |
||||
}; |
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version; |
||||
|
||||
nativeBuildInputs = [ |
||||
setuptools |
||||
setuptools-scm |
||||
]; |
||||
|
||||
propagatedBuildInputs = [ |
||||
dissect-cstruct |
||||
dissect-util |
||||
]; |
||||
|
||||
checkInputs = [ |
||||
pytestCheckHook |
||||
]; |
||||
|
||||
pythonImportsCheck = [ |
||||
"dissect.xfs" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Dissect module implementing a parser for the XFS file system"; |
||||
homepage = "https://github.com/fox-it/dissect.xfs"; |
||||
license = licenses.agpl3Only; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
@ -0,0 +1,88 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, 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-ole |
||||
, dissect-regf |
||||
, dissect-shellitem |
||||
, dissect-sql |
||||
, dissect-target |
||||
, dissect-util |
||||
, dissect-vmfs |
||||
, dissect-volume |
||||
, dissect-xfs |
||||
, fetchFromGitHub |
||||
, pythonOlder |
||||
, setuptools |
||||
, setuptools-scm |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "dissect"; |
||||
version = "3.2"; |
||||
format = "pyproject"; |
||||
|
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "fox-it"; |
||||
repo = "dissect"; |
||||
rev = version; |
||||
hash = "sha256-DtiaBKQtz6CgU1csfGhCw0LJLoiKwyH6N6b7/elpJkU="; |
||||
}; |
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version; |
||||
|
||||
nativeBuildInputs = [ |
||||
setuptools |
||||
setuptools-scm |
||||
]; |
||||
|
||||
propagatedBuildInputs = [ |
||||
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-ole |
||||
dissect-regf |
||||
dissect-shellitem |
||||
dissect-sql |
||||
dissect-target |
||||
dissect-util |
||||
dissect-vmfs |
||||
dissect-volume |
||||
dissect-xfs |
||||
] ++ dissect-target.optional-dependencies.full; |
||||
|
||||
# Module has no tests |
||||
doCheck = false; |
||||
|
||||
pythonImportsCheck = [ |
||||
"dissect" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Dissect meta module"; |
||||
homepage = "https://github.com/fox-it/dissect"; |
||||
license = licenses.agpl3Only; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
@ -0,0 +1,68 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, elasticsearch |
||||
, fetchFromGitHub |
||||
, lz4 |
||||
, msgpack |
||||
, pytestCheckHook |
||||
, pythonOlder |
||||
, setuptools |
||||
, setuptools-scm |
||||
, zstandard |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "flow-record"; |
||||
version = "3.5"; |
||||
format = "pyproject"; |
||||
|
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "fox-it"; |
||||
repo = "flow.record"; |
||||
rev = version; |
||||
hash = "sha256-hULz5pIqCKujVH3SpzFgzNM9R7WTtqAmuNOxG7VlUd0="; |
||||
}; |
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version; |
||||
|
||||
nativeBuildInputs = [ |
||||
setuptools |
||||
setuptools-scm |
||||
]; |
||||
|
||||
propagatedBuildInputs = [ |
||||
msgpack |
||||
]; |
||||
|
||||
passthru.optional-dependencies = { |
||||
compression = [ |
||||
lz4 |
||||
zstandard |
||||
]; |
||||
elastic = [ |
||||
elasticsearch |
||||
]; |
||||
}; |
||||
|
||||
checkInputs = [ |
||||
pytestCheckHook |
||||
]; |
||||
|
||||
pythonImportsCheck = [ |
||||
"flow.record" |
||||
]; |
||||
|
||||
disabledTestPaths = [ |
||||
# Test requires rdump |
||||
"tests/test_rdump.py" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Library for defining and creating structured data"; |
||||
homepage = "https://github.com/fox-it/flow.record"; |
||||
license = licenses.agpl3Only; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
@ -1,39 +1,116 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, isPy27 |
||||
, fetchFromGitHub |
||||
, jinja2 |
||||
, matplotlib |
||||
, openpyxl |
||||
, pandas |
||||
, poetry-core |
||||
, scipy |
||||
, sqlalchemy |
||||
, tabulate |
||||
, pyarrow |
||||
, pyreadstat |
||||
, tables |
||||
, pytestCheckHook |
||||
, pythonOlder |
||||
, types-pytz |
||||
, typing-extensions |
||||
, mypy |
||||
, xarray |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "pandas-stubs"; |
||||
version = "1.2.0.39"; |
||||
version = "1.5.0.221003"; |
||||
format = "pyproject"; |
||||
|
||||
disabled = isPy27; |
||||
disabled = pythonOlder "3.8"; |
||||
|
||||
# Use GitHub source since PyPi source does not include tests |
||||
src = fetchFromGitHub { |
||||
owner = "VirtusLab"; |
||||
owner = "pandas-dev"; |
||||
repo = pname; |
||||
rev = "2bd932777d1050ea8f86c527266a4cd205aa15b1"; |
||||
sha256 = "m2McU53NNvRwnWKN9GL8dW1eCGKbTi0471szRQwZu1Q="; |
||||
rev = "v${version}"; |
||||
sha256 = "sha256-RV0pOTPtlwBmYs3nu8+lNwVpl/VC/VzcXKOQMg9C3qk="; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ |
||||
poetry-core |
||||
]; |
||||
|
||||
propagatedBuildInputs = [ |
||||
pandas |
||||
types-pytz |
||||
]; |
||||
|
||||
checkInputs = [ |
||||
jinja2 |
||||
matplotlib |
||||
openpyxl |
||||
scipy |
||||
sqlalchemy |
||||
tabulate |
||||
pyarrow |
||||
tables |
||||
pyreadstat |
||||
pytestCheckHook |
||||
typing-extensions |
||||
xarray |
||||
]; |
||||
|
||||
pythonImportsCheck = [ "pandas" ]; |
||||
checkInputs = [ mypy ]; |
||||
checkPhase = '' |
||||
mypy --config-file mypy.ini third_party/3/pandas tests/snippets |
||||
''; |
||||
disabledTests = [ |
||||
# AttributeErrors, missing dependencies, error and warning checks |
||||
"test_data_error" |
||||
"test_specification_error" |
||||
"test_setting_with_copy_error" |
||||
"test_setting_with_copy_warning" |
||||
"test_numexpr_clobbering_error" |
||||
"test_undefined_variable_error" |
||||
"test_indexing_error" |
||||
"test_pyperclip_exception" |
||||
"test_css_warning" |
||||
"test_possible_data_loss_error" |
||||
"test_closed_file_error" |
||||
"test_incompatibility_warning" |
||||
"test_attribute_conflict_warning" |
||||
"test_database_error" |
||||
"test_possible_precision_loss" |
||||
"test_value_label_type_mismatch" |
||||
"test_invalid_column_name" |
||||
"test_categorical_conversion_warning" |
||||
"test_join" |
||||
"test_isetframe" |
||||
"test_reset_index_150_changes" |
||||
"test_compare_150_changes" |
||||
"test_quantile_150_changes" |
||||
"test_resample_150_changes" |
||||
"test_index_astype" |
||||
"test_orc" |
||||
"test_orc_path" |
||||
"test_orc_buffer" |
||||
"test_orc_columns" |
||||
"test_orc_bytes" |
||||
"test_clipboard" |
||||
"test_clipboard_iterator" |
||||
"test_arrow_dtype" |
||||
"test_aggregate_series_combinations" |
||||
"test_aggregate_frame_combinations" |
||||
"test_types_rank" |
||||
"test_reset_index" |
||||
"test_types_assert_series_equal" |
||||
"test_show_version" |
||||
"test_dummies" |
||||
"test_from_dummies_args" |
||||
"test_rolling_step_method" |
||||
]; |
||||
|
||||
pythonImportsCheck = [ |
||||
"pandas" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Type annotations for Pandas"; |
||||
homepage = "https://github.com/VirtusLab/pandas-stubs"; |
||||
license = licenses.mit; |
||||
maintainers = [ maintainers.malo ]; |
||||
maintainers = with maintainers; [ malo ]; |
||||
}; |
||||
} |
||||
|
@ -0,0 +1,29 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, fetchPypi |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "types-python-dateutil"; |
||||
version = "2.8.19"; |
||||
format = "setuptools"; |
||||
|
||||
src = fetchPypi { |
||||
inherit pname version; |
||||
hash = "sha256-v9PrOcclOupLojsQ9psBfTCwE2YrtL5KtIsgu9dj8wk="; |
||||
}; |
||||
|
||||
# Modules doesn't have tests |
||||
doCheck = false; |
||||
|
||||
pythonImportsCheck = [ |
||||
"dateutil-stubs" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Typing stubs for python-dateutil"; |
||||
homepage = "https://github.com/python/typeshed"; |
||||
license = licenses.asl20; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
@ -0,0 +1,29 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, fetchPypi |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "types-retry"; |
||||
version = "0.9.9"; |
||||
format = "setuptools"; |
||||
|
||||
src = fetchPypi { |
||||
inherit pname version; |
||||
hash = "sha256-sQh7J0aAtULHllSehIiJjQsizYmYjvEBbvVtQ2f/T0E="; |
||||
}; |
||||
|
||||
# Modules doesn't have tests |
||||
doCheck = false; |
||||
|
||||
pythonImportsCheck = [ |
||||
"retry-stubs" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Typing stubs for retry"; |
||||
homepage = "https://github.com/python/typeshed"; |
||||
license = licenses.asl20; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
Loading…
Reference in new issue