Skip to content

Commit

Permalink
Merge pull request #279148 from TomaSajt/py65
Browse files Browse the repository at this point in the history
python312Packages.py65: 1.1.0 -> 1.2.0, clean up
  • Loading branch information
drupol authored May 5, 2024
2 parents a73a91b + d7942b4 commit 093724d
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions pkgs/development/python-modules/py65/default.nix
Original file line number Diff line number Diff line change
@@ -1,40 +1,42 @@
{ 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
];
};
}

0 comments on commit 093724d

Please sign in to comment.