Unverified Commit 093724db authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

Merge pull request #279148 from TomaSajt/py65

python312Packages.py65: 1.1.0 -> 1.2.0, clean up
parents a73a91b6 d7942b4e
Loading
Loading
Loading
Loading
+19 −17
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  unittestCheckHook,
}:

buildPythonPackage rec {
  pname = "py65";
  version = "1.1.0";
  format = "setuptools";

  disabled = pythonOlder "3.6";
  version = "1.2.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "mnaberez";
    repo = "py65";
    rev = "refs/tags/${version}";
    hash = "sha256-WLs3TAZovuphWZIvMvM3CZnqg1aZfMF4Yrqw46k+bLA=";
    hash = "sha256-BMX+sMPx/YBFA4NFkaY0rl0EPicGHgb6xXVvLEIdllA=";
  };

  postPatch = ''
    substituteInPlace py65/tests/test_monitor.py \
          --replace "test_argv_rom" "dont_test_argv_rom" \
          --replace "test_argv_combination_rom_mpu" "dont_test_argv_combination_rom_mpu"
  '';
  build-system = [ setuptools ];

  nativeCheckInputs = [ unittestCheckHook ];

  meta = {
    homepage = "https://py65.readthedocs.io/";
    homepage = "https://github.com/mnaberez/py65";
    description = "Emulate 6502-based microcomputer systems in Python";
    mainProgram = "py65mon";
    longDescription = ''
      Py65 includes a program called Py65Mon that functions as a machine
      language monitor. This kind of program is sometimes also called a
      debugger. Py65Mon provides a command line with many convenient commands
      for interacting with the simulated 6502-based system.
    '';
    changelog = "https://github.com/mnaberez/py65/blob/${src.rev}/CHANGES.txt";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ AndersonTorres tomasajt ];
    mainProgram = "py65mon";
    maintainers = with lib.maintainers; [
      AndersonTorres
      tomasajt
    ];
  };
}