Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / misc / pylode / default.nix
blob581baf0e9c80835f94873b7b59a7aca0d933b0c8
1 { lib
2 , python3
3 , fetchFromGitHub
4 }:
6 python3.pkgs.buildPythonApplication rec {
7   pname = "pylode";
8   version = "2.13.3";
9   format = "setuptools";
11   disabled = python3.pythonOlder "3.6";
13   src = fetchFromGitHub {
14     owner = "RDFLib";
15     repo = pname;
16     rev = "refs/tags/${version}";
17     sha256 = "sha256-AtqkxnpEL+580S/iKCaRcsQO6LLYhkJxyNx6fi3atbE=";
18   };
20   propagatedBuildInputs = with python3.pkgs; [
21     beautifulsoup4
22     falcon
23     jinja2
24     markdown
25     python-dateutil
26     rdflib
27     requests
28   ];
30   postPatch = ''
31     substituteInPlace requirements.txt \
32       --replace "rdflib==6.0.0" "rdflib"
33   '';
35   # Path issues with the tests
36   doCheck = false;
38   pythonImportsCheck = [
39     "pylode"
40   ];
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   };