nixpkgs/pkgs/misc/pylode/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
997 B
Nix
Raw Normal View History

2020-08-20 15:23:22 +00:00
{ lib
2021-11-05 22:28:09 +00:00
, python3
2020-08-20 15:23:22 +00:00
, fetchFromGitHub
}:
2021-11-05 22:28:09 +00:00
python3.pkgs.buildPythonApplication rec {
pname = "pylode";
2021-08-31 18:50:14 +00:00
version = "2.12.0";
2021-11-05 22:28:09 +00:00
format = "setuptools";
disabled = python3.pythonOlder "3.6";
2020-08-20 15:23:22 +00:00
src = fetchFromGitHub {
owner = "RDFLib";
repo = pname;
rev = version;
2021-08-31 18:50:14 +00:00
sha256 = "sha256-X/YiJduAJNiceIrlCFwD2PFiMn3HVlzr9NzyDvYcql8=";
2020-08-20 15:23:22 +00:00
};
2021-11-05 22:28:09 +00:00
propagatedBuildInputs = with python3.pkgs; [
beautifulsoup4
2020-08-20 15:23:22 +00:00
falcon
jinja2
markdown
2021-11-05 22:28:09 +00:00
python-dateutil
2020-08-20 15:23:22 +00:00
rdflib
requests
2021-11-05 22:28:09 +00:00
];
postPatch = ''
substituteInPlace requirements.txt \
--replace "rdflib==6.0.0" "rdflib"
'';
# Path issues with the tests
doCheck = false;
pythonImportsCheck = [
"pylode"
2020-08-20 15:23:22 +00:00
];
meta = with lib; {
2021-11-05 22:28:09 +00:00
description = "OWL ontology documentation tool using Python and templating, based on LODE";
2020-08-20 15:23:22 +00:00
homepage = "https://github.com/RDFLib/pyLODE";
2021-11-05 22:28:09 +00:00
# Next release will move to BSD3
2020-08-20 15:23:22 +00:00
license = licenses.gpl3Only;
maintainers = with maintainers; [ koslambrou ];
};
}