Commit 2f12e41d authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python312Packages.pyeapi: add patch to replace imp

parent f0324935
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, setuptools
, mock
, netaddr
@@ -22,6 +23,15 @@ buildPythonPackage rec {
    sha256 = "sha256-GZBoCoAqij54rZezRDF/ihJDQ5T6FFyDSRXGV3//avQ=";
  };

  patches = [
    # Replace imp, https://github.com/arista-eosplus/pyeapi/pull/295
    (fetchpatch {
      name = "replace-imp.patch";
      url = "https://github.com/arista-eosplus/pyeapi/commit/1f2d8e1fa61566082ccb11a1a17e0f3d8a0c89df.patch";
      hash = "sha256-ONviRU6eUUZ+TTJ4F41ZXqavW7RIi1MBO7s7OsnWknk=";
    })
  ];

  build-system = [
    setuptools
  ];