@@ -1,11 +1,14 @@
11{ lib
2−, python3Packages
2+, python3
33, fetchFromGitHub
44}:
55
6−python3Packages.buildPythonApplication rec {
7− pname = "pyLODE";
6+python3.pkgs.buildPythonApplication rec {
7+ pname = "pylode";
88 version = "2.12.0";
9+ format = "setuptools";
10+
11+ disabled = python3.pythonOlder "3.6";
912
1013 src = fetchFromGitHub {
1114 owner = "RDFLib";
@@ -14,22 +17,32 @@ python3Packages.buildPythonApplication rec {
1417 sha256 = "sha256-X/YiJduAJNiceIrlCFwD2PFiMn3HVlzr9NzyDvYcql8=";
1518 };
1619
17− propagatedBuildInputs = with python3Packages; [
18− python-dateutil
20+ propagatedBuildInputs = with python3.pkgs; [
21+ beautifulsoup4
1922 falcon
20− gunicorn
21− isodate
2223 jinja2
2324 markdown
25+ python-dateutil
2426 rdflib
2527 requests
26− six
27− beautifulsoup4
28+ ];
29+
30+ postPatch = ''
31+ substituteInPlace requirements.txt \
32+ --replace "rdflib==6.0.0" "rdflib"
33+ '';
34+
35+ # Path issues with the tests
36+ doCheck = false;
37+
38+ pythonImportsCheck = [
39+ "pylode"
2840 ];
2941
3042 meta = with lib; {
31− description = "An OWL ontology documentation tool using Python and templating, based on LODE";
43+ description = "OWL ontology documentation tool using Python and templating, based on LODE";
3244 homepage = "https://github.com/RDFLib/pyLODE";
45+ # Next release will move to BSD3
3346 license = licenses.gpl3Only;
3447 maintainers = with maintainers; [ koslambrou ];
3548 };