Skip to content

Commit

Permalink
python312Packages.py65: 1.1.0 -> 1.2.0, clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
TomaSajt committed May 2, 2024
1 parent 7ce5259 commit d7942b4
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 d7942b4

Please sign in to comment.