Commit b437788d authored by TomaSajt's avatar TomaSajt Committed by Anderson Torres
Browse files

python310Packages.py65: use fetchFromGitHub and buildPythonPackage

parent 7b175966
Loading
Loading
Loading
Loading
+21 −7
Original line number Diff line number Diff line
{ lib, fetchPypi, buildPythonApplication }:
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
}:

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

  src = fetchPypi {
    inherit pname version format;
    sha256 = "Q7rjiHJ/Ew985vut/8fVAf/wWYW5aBPSvNPm8A6g1zg=";
  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 = with lib; {
    homepage = "https://py65.readthedocs.io/";
    description = "Emulate 6502-based microcomputer systems in Python";
@@ -20,6 +34,6 @@ buildPythonApplication rec {
      for interacting with the simulated 6502-based system.
    '';
    license = licenses.bsd3;
    maintainers = with maintainers; [ AndersonTorres ];
    maintainers = with maintainers; [ AndersonTorres tomasajt ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -7913,6 +7913,8 @@ self: super: with self; {

  py-nextbusnext = callPackage ../development/python-modules/py-nextbusnext { };

  py65 = callPackage ../development/python-modules/py65 { };

  pyaehw4a1 = callPackage ../development/python-modules/pyaehw4a1 { };

  pyatag = callPackage ../development/python-modules/pyatag { };