2021-03-09 03:18:52 +00:00
|
|
|
{ lib
|
2021-12-06 16:07:01 +00:00
|
|
|
, python3
|
2021-03-09 03:18:52 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "pylode";
|
2022-07-14 12:49:19 +00:00
|
|
|
version = "2.13.3";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = python3.pythonOlder "3.6";
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "RDFLib";
|
|
|
|
repo = pname;
|
2022-07-14 12:49:19 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
sha256 = "sha256-AtqkxnpEL+580S/iKCaRcsQO6LLYhkJxyNx6fi3atbE=";
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
beautifulsoup4
|
2021-03-09 03:18:52 +00:00
|
|
|
falcon
|
|
|
|
jinja2
|
|
|
|
markdown
|
2021-12-06 16:07:01 +00:00
|
|
|
python-dateutil
|
2021-03-09 03:18:52 +00:00
|
|
|
rdflib
|
|
|
|
requests
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace requirements.txt \
|
|
|
|
--replace "rdflib==6.0.0" "rdflib"
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Path issues with the tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pylode"
|
2021-03-09 03:18:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2021-12-06 16:07:01 +00:00
|
|
|
description = "OWL ontology documentation tool using Python and templating, based on LODE";
|
2021-03-09 03:18:52 +00:00
|
|
|
homepage = "https://github.com/RDFLib/pyLODE";
|
2021-12-06 16:07:01 +00:00
|
|
|
# Next release will move to BSD3
|
2021-03-09 03:18:52 +00:00
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ koslambrou ];
|
|
|
|
};
|
|
|
|
}
|