1{ lib
2, python3
3, fetchFromGitHub
4}:
5
6python3.pkgs.buildPythonApplication rec {
7 pname = "pylode";
8 version = "2.13.3";
9 format = "setuptools";
10
11 disabled = python3.pythonOlder "3.6";
12
13 src = fetchFromGitHub {
14 owner = "RDFLib";
15 repo = pname;
16 rev = "refs/tags/${version}";
17 sha256 = "sha256-AtqkxnpEL+580S/iKCaRcsQO6LLYhkJxyNx6fi3atbE=";
18 };
19
20 propagatedBuildInputs = with python3.pkgs; [
21 beautifulsoup4
22 falcon
23 jinja2
24 markdown
25 python-dateutil
26 rdflib
27 requests
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"
40 ];
41
42 meta = with lib; {
43 description = "OWL ontology documentation tool using Python and templating, based on LODE";
44 homepage = "https://github.com/RDFLib/pyLODE";
45 # Next release will move to BSD3
46 license = licenses.gpl3Only;
47 maintainers = with maintainers; [ koslambrou ];
48 };
49}