about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/py65/default.nix
blob: 3c06f5932f00126fb187a721016c53c3f81c4266 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ 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";
    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.
    '';
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ AndersonTorres tomasajt ];
  };
}