ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / pyrdfa3 / default.nix
blob97768e7fed507f9ca626c44b8c18f224e9a3293a
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , isPy27
5 , rdflib
6 , html5lib
7 }:
9 buildPythonPackage rec {
10   pname = "pyrdfa3";
11   version = "3.5.3";
12   disabled = isPy27;
14   src = fetchPypi {
15     inherit version;
16     pname = "pyRdfa3";
17     sha256 = "sha256-FXZjqSuH3zRbb2m94jXf9feXiRYI4S/h5PqNrWhxMa4=";
18   };
20   postPatch = ''
21     substituteInPlace setup.py \
22       --replace "'html = pyRdfa.rdflibparsers:StructuredDataParser'" "'html = pyRdfa.rdflibparsers:StructuredDataParser'," \
23       --replace "'hturtle = pyRdfa.rdflibparsers:HTurtleParser'" "'hturtle = pyRdfa.rdflibparsers:HTurtleParser',"
24   '';
26   propagatedBuildInputs = [
27     rdflib
28     html5lib
29   ];
31   # Does not work with python3
32   doCheck = false;
34   pythonImportsCheck = [ "pyRdfa" ];
36   meta = with lib; {
37     description = "RDFa 1.1 distiller/parser library";
38     homepage = "https://www.w3.org/2012/pyRdfa/";
39     license = licenses.w3c;
40     maintainers = with maintainers; [ ambroisie ];
41   };