depot/third_party/nixpkgs/pkgs/development/python-modules/py65/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

39 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
}:
buildPythonPackage rec {
pname = "py65";
version = "1.1.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "mnaberez";
repo = "py65";
rev = "refs/tags/${version}";
hash = "sha256-WLs3TAZovuphWZIvMvM3CZnqg1aZfMF4Yrqw46k+bLA=";
};
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"
'';
meta = {
homepage = "https://py65.readthedocs.io/";
description = "Emulate 6502-based microcomputer systems in Python";
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.
'';
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ AndersonTorres tomasajt ];
};
}