audiobookshelf: 2.18.1 -> 2.19.0 (#378967)
[NixPkgs.git] / pkgs / by-name / py / pylode / package.nix
blobb112dce0e90339c12fdd18b6918f00b286b9a0ca
2   lib,
3   python3,
4   fetchFromGitHub,
5 }:
7 python3.pkgs.buildPythonApplication rec {
8   pname = "pylode";
9   version = "2.13.3";
10   format = "setuptools";
12   disabled = python3.pythonOlder "3.6";
14   src = fetchFromGitHub {
15     owner = "RDFLib";
16     repo = pname;
17     tag = version;
18     sha256 = "sha256-AtqkxnpEL+580S/iKCaRcsQO6LLYhkJxyNx6fi3atbE=";
19   };
21   propagatedBuildInputs = with python3.pkgs; [
22     beautifulsoup4
23     falcon
24     jinja2
25     markdown
26     python-dateutil
27     rdflib
28     requests
29   ];
31   postPatch = ''
32     substituteInPlace requirements.txt \
33       --replace "rdflib==6.0.0" "rdflib"
34   '';
36   # Path issues with the tests
37   doCheck = false;
39   pythonImportsCheck = [
40     "pylode"
41   ];
43   meta = with lib; {
44     description = "OWL ontology documentation tool using Python and templating, based on LODE";
45     homepage = "https://github.com/RDFLib/pyLODE";
46     # Next release will move to BSD3
47     license = licenses.gpl3Only;
48     maintainers = with maintainers; [ koslambrou ];
49     mainProgram = "pylode";
50   };