summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/py/pylode/package.nix
blob: 16a68d6b6c330ee1af760f6e6602d1c1b066a8bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
  lib,
  python3,
  fetchFromGitHub,
}:

python3.pkgs.buildPythonApplication (finalAttrs: {
  pname = "pylode";
  version = "3.2.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "RDFLib";
    repo = "pylode";
    tag = finalAttrs.version;
    hash = "sha256-b1asjzkatSbe5HRqGPf808wjnJTwOaYKABPyO+jSd8c=";
  };

  pythonRelaxDeps = [ "rdflib" ];

  build-system = with python3.pkgs; [ poetry-core ];

  dependencies = with python3.pkgs; [
    beautifulsoup4
    dominate
    html5lib
    httpx
    markdown
    rdflib
  ];

  # Path issues with the tests
  doCheck = false;

  pythonImportsCheck = [ "pylode" ];

  meta = {
    description = "OWL ontology documentation tool using Python and templating, based on LODE";
    homepage = "https://github.com/RDFLib/pyLODE";
    changelog = "https://github.com/RDFLib/pyLODE/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ koslambrou ];
    mainProgram = "pylode";
  };
})