python310Packages.pyeapi: fix Python 3.10 support
This commit is contained in:
parent
2bddfc7cd3
commit
ebaa5279da
|
@ -38,16 +38,21 @@ buildPythonPackage rec {
|
|||
url = "https://github.com/arista-eosplus/pyeapi/commit/81754f57eb095703cc474f527a0915360af76f68.patch";
|
||||
sha256 = "sha256-ZNBTPRNmXCFVJeRAJxzIHmCOXZiGwU6t4ekSupU3BX8=";
|
||||
})
|
||||
(fetchpatch {
|
||||
name = "fix-collection-usage-2.patch";
|
||||
url = "https://github.com/arista-eosplus/pyeapi/commit/cc9c584e4a3167e3c1624cccb6bc0d9c9bcdbc1c.patch";
|
||||
sha256 = "sha256-EY0i1Skm1llEQAAzvrb2yelhhLBkqKAFJB5ObAIxAYo=";
|
||||
excludes = [
|
||||
".github/workflows/ci.yml"
|
||||
];
|
||||
})
|
||||
(fetchpatch {
|
||||
name = "fix-collection-usage-3.patch";
|
||||
url = "https://github.com/arista-eosplus/pyeapi/commit/dc35ab076687ea71665ae9524480b05a4e893909.patch";
|
||||
sha256 = "sha256-xPaYULCPTxiQGB9Im/qLet+XebW9wq+TAfrxcgQxcoE=";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# https://github.com/arista-eosplus/pyeapi/pull/223
|
||||
substituteInPlace test/unit/test_utils.py \
|
||||
--replace "collections.Iterable" "collections.abc.Iterable"
|
||||
substituteInPlace pyeapi/api/abstract.py \
|
||||
--replace "from collections" "from collections.abc"
|
||||
'';
|
||||
|
||||
pytestFlagsArray = [
|
||||
"test/unit"
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue