python312Packages.pyeapi: add patch to replace imp

This commit is contained in:
Fabian Affolter 2024-04-03 20:59:39 +02:00
parent f03249355c
commit 2f12e41de3

View File

@ -1,6 +1,7 @@
{ 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
];