2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
html5lib,
|
|
|
|
pythonOlder,
|
|
|
|
rdflib,
|
|
|
|
requests,
|
|
|
|
setuptools,
|
2022-10-06 18:32:54 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyrdfa3";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "3.6.2";
|
2024-01-25 14:12:00 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2022-10-06 18:32:54 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version;
|
|
|
|
pname = "pyRdfa3";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-c2gdq5V/YJAWlnZziLlWpXaccwvEUdpv+y8ONvGDFMI=";
|
2022-10-06 18:32:54 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-01-25 14:12:00 +00:00
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
rdflib
|
|
|
|
html5lib
|
2024-04-21 15:54:59 +00:00
|
|
|
requests
|
2022-10-06 18:32:54 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pyRdfa" ];
|
2022-10-06 18:32:54 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "RDFa 1.1 distiller/parser library";
|
2024-01-25 14:12:00 +00:00
|
|
|
homepage = "https://github.com/prrvchr/pyrdfa3/";
|
|
|
|
changelog = "https://github.com/prrvchr/pyrdfa3/releases/tag/v${version}";
|
2022-10-06 18:32:54 +00:00
|
|
|
license = licenses.w3c;
|
|
|
|
maintainers = with maintainers; [ ambroisie ];
|
|
|
|
};
|
|
|
|
}
|