mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-21 04:42:07 +03:00
python310Packages.pyrdfa3: init at 3.5.3
This commit is contained in:
parent
ac7c5852e5
commit
8c3ae3902d
42
pkgs/development/python-modules/pyrdfa3/default.nix
Normal file
42
pkgs/development/python-modules/pyrdfa3/default.nix
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, isPy27
|
||||||
|
, rdflib
|
||||||
|
, html5lib
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pyrdfa3";
|
||||||
|
version = "3.5.3";
|
||||||
|
disabled = isPy27;
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit version;
|
||||||
|
pname = "pyRdfa3";
|
||||||
|
sha256 = "sha256-FXZjqSuH3zRbb2m94jXf9feXiRYI4S/h5PqNrWhxMa4=";
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace "'html = pyRdfa.rdflibparsers:StructuredDataParser'" "'html = pyRdfa.rdflibparsers:StructuredDataParser'," \
|
||||||
|
--replace "'hturtle = pyRdfa.rdflibparsers:HTurtleParser'" "'hturtle = pyRdfa.rdflibparsers:HTurtleParser',"
|
||||||
|
'';
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
rdflib
|
||||||
|
html5lib
|
||||||
|
];
|
||||||
|
|
||||||
|
# Does not work with python3
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "pyRdfa" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "RDFa 1.1 distiller/parser library";
|
||||||
|
homepage = "https://www.w3.org/2012/pyRdfa/";
|
||||||
|
license = licenses.w3c;
|
||||||
|
maintainers = with maintainers; [ ambroisie ];
|
||||||
|
};
|
||||||
|
}
|
@ -7017,6 +7017,8 @@ in {
|
|||||||
|
|
||||||
pypoolstation = callPackage ../development/python-modules/pypoolstation { };
|
pypoolstation = callPackage ../development/python-modules/pypoolstation { };
|
||||||
|
|
||||||
|
pyrdfa3 = callPackage ../development/python-modules/pyrdfa3 { };
|
||||||
|
|
||||||
pyrevolve = callPackage ../development/python-modules/pyrevolve { };
|
pyrevolve = callPackage ../development/python-modules/pyrevolve { };
|
||||||
|
|
||||||
pyrfxtrx = callPackage ../development/python-modules/pyrfxtrx { };
|
pyrfxtrx = callPackage ../development/python-modules/pyrfxtrx { };
|
||||||
|
Loading…
Reference in New Issue
Block a user