Unverified Commit 349f62b3 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

termineter: init at 1.0.6 (#348550)

parents 7bca4314 7c26ba2d
Loading
Loading
Loading
Loading
+41 −0
Original line number Diff line number Diff line
{
  lib,
  python3,
  fetchFromGitHub,
}:

python3.pkgs.buildPythonApplication rec {
  pname = "termineter";
  version = "1.0.6";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "rsmusllp";
    repo = "termineter";
    rev = "refs/tags/v${version}";
    hash = "sha256-sJN1FNUCpQUMJNM6F2+v0NmGqu4LVYcsffwzl3Hr1CU=";
  };

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

  dependencies = with python3.pkgs; [
    crcelk
    pluginbase
    pyasn1
    pyserial
    smoke-zephyr
    tabulate
    termcolor
  ];

  pythonImportsCheck = [ "termineter" ];

  meta = {
    description = "Smart Meter Security Testing Framework";
    homepage = "https://github.com/rsmusllp/termineter";
    changelog = "https://github.com/rsmusllp/termineter/releases/tag/v${version}";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ fab ];
    mainProgram = "termineter";
  };
}
+36 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pythonOlder,
  setuptools,
}:

buildPythonPackage rec {
  pname = "crcelk";
  version = "1.3";
  pyproject = true;

  disabled = pythonOlder "3.9";

  src = fetchFromGitHub {
    owner = "zeroSteiner";
    repo = "crcelk";
    rev = "refs/tags/v${version}";
    hash = "sha256-eJt0qcG0ejTQJyjOSi6Au2jH801KOMnk7f6cLbd7ADw=";
  };

  build-system = [ setuptools ];

  # Module has no tests
  doCheck = false;

  pythonImportsCheck = [ "crcelk" ];

  meta = {
    description = "Implementation of the CRC algorithm";
    homepage = "https://github.com/zeroSteiner/crcelk";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
  };
}
+42 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  pythonOlder,
  unittestCheckHook,
}:

buildPythonPackage rec {
  pname = "smoke-zephyr";
  version = "2.0.1";
  pyproject = true;

  disabled = pythonOlder "3.9";

  src = fetchFromGitHub {
    owner = "zeroSteiner";
    repo = "smoke-zephyr";
    rev = "refs/tags/v${version}";
    hash = "sha256-XZj8sxEWYv5z1x7LKb0T3L7MWSZbWr7lAIyjWekN+WY=";
  };

  postPatch = ''
    substituteInPlace tests/utilities.py \
      --replace-fail "assertEquals" "assertEqual"
  '';

  build-system = [ setuptools ];

  nativeCheckInputs = [ unittestCheckHook ];

  pythonImportsCheck = [ "smoke_zephyr" ];

  meta = {
    description = "Python utility collection";
    homepage = "https://github.com/zeroSteiner/smoke-zephyr";
    changelog = "https://github.com/zeroSteiner/smoke-zephyr/releases/tag/v${version}";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ fab ];
  };
}
+4 −0
Original line number Diff line number Diff line
@@ -2652,6 +2652,8 @@ self: super: with self; {
  crccheck = callPackage ../development/python-modules/crccheck { };
  crcelk = callPackage ../development/python-modules/crcelk { };
  crcmod = callPackage ../development/python-modules/crcmod { };
  credstash = callPackage ../development/python-modules/credstash { };
@@ -14525,6 +14527,8 @@ self: super: with self; {
  smmap = callPackage ../development/python-modules/smmap { };
  smoke-zephyr = callPackage ../development/python-modules/smoke-zephyr { };
  smpplib = callPackage ../development/python-modules/smpplib { };
  smpp-pdu = callPackage ../development/python-modules/smpp-pdu { };