1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 html5lib,
6 pythonOlder,
7 rdflib,
8 requests,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "pyrdfa3";
14 version = "3.6.4";
15 pyproject = true;
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-ZHEtGkvyGCllKzlxW62m58A7zxnLSfliwZCjj0YXIkM=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [
27 rdflib
28 html5lib
29 requests
30 ];
31
32 # Module has no tests
33 doCheck = false;
34
35 pythonImportsCheck = [ "pyRdfa" ];
36
37 meta = with lib; {
38 description = "RDFa 1.1 distiller/parser library";
39 homepage = "https://github.com/prrvchr/pyrdfa3/";
40 changelog = "https://github.com/prrvchr/pyrdfa3/releases/tag/v${version}";
41 license = licenses.w3c;
42 maintainers = with maintainers; [ ambroisie ];
43 };
44}