lol

python311Packages.biopython: patch SeqXMLIO parser

seth 2e6953fd ac34158a

+25
+18
pkgs/development/python-modules/biopython/close_parser_on_time.patch
··· 1 + diff --git a/Bio/SeqIO/SeqXmlIO.py b/Bio/SeqIO/SeqXmlIO.py 2 + index 8fe75ebb728..6758317d05f 100644 3 + --- a/Bio/SeqIO/SeqXmlIO.py 4 + +++ b/Bio/SeqIO/SeqXmlIO.py 5 + @@ -498,11 +498,12 @@ def iterate(self, handle): 6 + if not text: 7 + break 8 + parser.feed(text) 9 + + # Closing the parser ensures that all XML data fed into it are processed 10 + + parser.close() 11 + # We have reached the end of the XML file; 12 + # send out the remaining records 13 + yield from records 14 + records.clear() 15 + - parser.close() 16 + 17 + 18 + class SeqXmlWriter(SequenceWriter):
+7
pkgs/development/python-modules/biopython/default.nix
··· 18 18 hash = "sha256-eOa/t43mMDQDev01/nfLbgqeW2Jwa+z3in2SKxbtg/c="; 19 19 }; 20 20 21 + patches = [ 22 + # cherry-picked from https://github.com/biopython/biopython/commit/3f9bda7ef44f533dadbaa0de29ac21929bc0b2f1 23 + # fixes SeqXMLIO parser to process all data. remove on next update 24 + ./close_parser_on_time.patch 25 + ]; 26 + 27 + 21 28 nativeBuildInputs = [ 22 29 setuptools 23 30 ];