2021-02-05 17:12:51 +00:00
|
|
|
{ lib, fetchPypi, buildPythonPackage, pythonAtLeast, intervaltree, pyflakes, requests, lxml, google-i18n-address
|
2021-07-24 12:14:16 +00:00
|
|
|
, pycountry, html5lib, six, kitchen, pypdf2, dict2xml, weasyprint, pyyaml, jinja2, configargparse, appdirs
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "xml2rfc";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "3.9.1";
|
2021-01-05 17:05:55 +00:00
|
|
|
disabled = pythonAtLeast "3.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "76cee167e81fc3cc0e0cc696fe58cadd039e19a774c8f4d2e5c0fea724c7aaca";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
intervaltree
|
2020-09-25 04:45:31 +00:00
|
|
|
jinja2
|
2020-04-24 23:36:52 +00:00
|
|
|
pyflakes
|
2020-09-25 04:45:31 +00:00
|
|
|
pyyaml
|
2020-04-24 23:36:52 +00:00
|
|
|
requests
|
|
|
|
lxml
|
|
|
|
google-i18n-address
|
|
|
|
pycountry
|
|
|
|
html5lib
|
|
|
|
six
|
|
|
|
kitchen
|
|
|
|
pypdf2
|
|
|
|
dict2xml
|
|
|
|
weasyprint
|
2021-07-24 12:14:16 +00:00
|
|
|
configargparse
|
2021-01-05 17:05:55 +00:00
|
|
|
appdirs
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
|
|
|
|
|
|
|
# lxml tries to fetch from the internet
|
|
|
|
doCheck = false;
|
2021-01-05 17:05:55 +00:00
|
|
|
pythonImportsCheck = [ "xml2rfc" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Tool generating IETF RFCs and drafts from XML sources";
|
|
|
|
homepage = "https://tools.ietf.org/tools/xml2rfc/trac/";
|
|
|
|
# Well, parts might be considered unfree, if being strict; see:
|
|
|
|
# http://metadata.ftp-master.debian.org/changelogs/non-free/x/xml2rfc/xml2rfc_2.9.6-1_copyright
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ vcunat yrashk ];
|
|
|
|
};
|
|
|
|
}
|