Unverified Commit 85dfb8e1 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

mvt: init at 2.5.4 (#350078)

parents 500a82d1 8eb50527
Loading
Loading
Loading
Loading
+51 −0
Original line number Diff line number Diff line
{
  lib,
  python3,
  fetchFromGitHub,
}:

python3.pkgs.buildPythonApplication rec {
  pname = "mvt";
  pyproject = true;
  version = "2.5.4";

  src = fetchFromGitHub {
    owner = "mvt-project";
    repo = "mvt";
    rev = "refs/tags/v${version}";
    hash = "sha256-xDUjyvOsiweRqibTe7V8I/ABeaahCoR/d5w23qixp9A";
  };

  build-system = with python3.pkgs; [ setuptools ];

  dependencies = with python3.pkgs; [
    adb-shell
    appdirs
    click
    cryptography
    libusb1
    iosbackup
    packaging
    pyahocorasick
    pyyaml
    requests
    rich
    simplejson
    tld
  ];

  nativeCheckInputs = with python3.pkgs; [
    pytestCheckHook
    pytest-mock
    stix2
  ];

  meta = {
    description = "Tool to facilitate the consensual forensic analysis of Android and iOS devices";
    homepage = "https://docs.mvt.re/en/latest/";
    # https://github.com/mvt-project/mvt/blob/main/LICENSE
    license = lib.licenses.unfree;
    changelog = "https://github.com/mvt-project/mvt/releases/tag/v${version}";
    maintainers = with lib.maintainers; [ PapayaJackal ];
  };
}
+36 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  nskeyedunarchiver,
  pycrypto,
}:

buildPythonPackage rec {
  pname = "iosbackup";
  version = "0.9.925";
  pyproject = true;

  src = fetchPypi {
    inherit version;
    pname = "iOSbackup";
    hash = "sha256-M1Rakknls/qq3x7ngv5r3823D64N77oazuM2pl+T0co=";
  };

  build-system = [ setuptools ];

  dependencies = [
    pycrypto
    nskeyedunarchiver
  ];

  pythonImportsCheck = [ "iOSbackup" ];

  meta = {
    description = "Reads and extracts files from password-encrypted iOS backups";
    homepage = "https://github.com/avibrazil/iOSbackup";
    license = lib.licenses.lgpl2Only;
    maintainers = with lib.maintainers; [ PapayaJackal ];
  };
}
+45 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  setuptools,
  flask,
  flask-httpauth,
  pytz,
  six,
  pymongo,
}:

buildPythonPackage rec {
  pname = "medallion";
  version = "3.0.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "oasis-open";
    repo = "cti-taxii-server";
    rev = "refs/tags/v${version}";
    hash = "sha256-+fWifWi/XR6MSOLhWXn2CFpItVdkOpzQItlrZkjapAk=";
  };

  build-system = [ setuptools ];

  dependencies = [
    flask
    flask-httpauth
    pymongo
    pytz
    six
  ];

  pythonImportsCheck = [ "medallion" ];

  meta = with lib; {
    description = "Minimal implementation of a TAXII 2.1 Server in Python";
    homepage = "https://medallion.readthedocs.io/en/latest/";
    changelog = "https://github.com/oasis-open/cti-taxii-server/blob/v${version}/CHANGES.txt";
    license = licenses.bsd3;
    maintainers = with maintainers; [ PapayaJackal ];
  };
}
+29 −0
Original line number Diff line number Diff line
{
  buildPythonPackage,
  fetchPypi,
  lib,
  setuptools,
}:

buildPythonPackage rec {
  pname = "nskeyedunarchiver";
  version = "1.2";
  pyproject = true;

  src = fetchPypi {
    inherit version;
    pname = "NSKeyedUnArchiver";
    hash = "sha256-OZWPGH8ggYYKxeg6CGyft6ZM9Yx/43z7YylzXlQcTVg=";
  };

  build-system = [ setuptools ];

  pythonImportsCheck = [ "NSKeyedUnArchiver" ];

  meta = {
    description = "Unserializes plist data into a usable Python dict";
    homepage = "https://github.com/avibrazil/NSKeyedUnArchiver";
    license = lib.licenses.bsdOriginal;
    maintainers = with lib.maintainers; [ PapayaJackal ];
  };
}
+62 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  setuptools,
  haversine,
  medallion,
  pytz,
  rapidfuzz,
  requests,
  simplejson,
  stix2-patterns,
  taxii2-client,
}:

buildPythonPackage rec {
  pname = "stix2";
  version = "3.0.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "oasis-open";
    repo = "cti-python-stix2";
    rev = "refs/tags/v${version}";
    hash = "sha256-1bILZUZgPOWmFWRu4p/fmgi4QPEE1lFQH9mxoWd/saI=";
  };

  build-system = [ setuptools ];

  dependencies = [
    pytz
    requests
    simplejson
    stix2-patterns
  ];

  nativeCheckInputs = [
    pytestCheckHook
    haversine
    medallion
    rapidfuzz
    taxii2-client
  ];

  disabledTests = [
    # flaky tests
    "test_graph_equivalence_with_filesystem_source"
    "test_graph_similarity_with_filesystem_source"
    "test_object_similarity_prop_scores"
  ];

  pythonImportsCheck = [ "stix2" ];

  meta = with lib; {
    description = "Produce and consume STIX 2 JSON content";
    homepage = "https://stix2.readthedocs.io/en/latest/";
    changelog = "https://github.com/oasis-open/cti-python-stix2/blob/v${version}/CHANGELOG";
    license = licenses.bsd3;
    maintainers = with maintainers; [ PapayaJackal ];
  };
}
Loading