10 buildPythonPackage rec {
18 hash = "sha256-FXZjqSuH3zRbb2m94jXf9feXiRYI4S/h5PqNrWhxMa4=";
23 name = "CVE-2022-4396.patch";
24 url = "https://github.com/RDFLib/pyrdfa3/commit/ffd1d62dd50d5f4190013b39cedcdfbd81f3ce3e.patch";
25 hash = "sha256-prRrOwylYcEqKLr/8LIpyJ5Yyt+6+HTUqH5sQXU8tqc=";
30 substituteInPlace setup.py \
31 --replace "'html = pyRdfa.rdflibparsers:StructuredDataParser'" "'html = pyRdfa.rdflibparsers:StructuredDataParser'," \
32 --replace "'hturtle = pyRdfa.rdflibparsers:HTurtleParser'" "'hturtle = pyRdfa.rdflibparsers:HTurtleParser',"
35 propagatedBuildInputs = [
40 # Does not work with python3
43 pythonImportsCheck = [ "pyRdfa" ];
46 description = "RDFa 1.1 distiller/parser library";
47 homepage = "https://www.w3.org/2012/pyRdfa/";
48 license = licenses.w3c;
49 maintainers = with maintainers; [ ambroisie ];