@@ -38,16 +38,21 @@ buildPythonPackage rec {
3838 url = "https://github.com/arista-eosplus/pyeapi/commit/81754f57eb095703cc474f527a0915360af76f68.patch";
3939 sha256 = "sha256-ZNBTPRNmXCFVJeRAJxzIHmCOXZiGwU6t4ekSupU3BX8=";
4040 })
41+ (fetchpatch {
42+ name = "fix-collection-usage-2.patch";
43+ url = "https://github.com/arista-eosplus/pyeapi/commit/cc9c584e4a3167e3c1624cccb6bc0d9c9bcdbc1c.patch";
44+ sha256 = "sha256-EY0i1Skm1llEQAAzvrb2yelhhLBkqKAFJB5ObAIxAYo=";
45+ excludes = [
46+ ".github/workflows/ci.yml"
47+ ];
48+ })
49+ (fetchpatch {
50+ name = "fix-collection-usage-3.patch";
51+ url = "https://github.com/arista-eosplus/pyeapi/commit/dc35ab076687ea71665ae9524480b05a4e893909.patch";
52+ sha256 = "sha256-xPaYULCPTxiQGB9Im/qLet+XebW9wq+TAfrxcgQxcoE=";
53+ })
4154 ];
4255
43− postPatch = ''
44− # https://github.com/arista-eosplus/pyeapi/pull/223
45− substituteInPlace test/unit/test_utils.py \
46− --replace "collections.Iterable" "collections.abc.Iterable"
47− substituteInPlace pyeapi/api/abstract.py \
48− --replace "from collections" "from collections.abc"
49− '';
50−
5156 pytestFlagsArray = [
5257 "test/unit"
5358 ];