2021-09-25 19:39:21 +00:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, intervaltree
|
|
|
|
, pyflakes
|
|
|
|
, requests
|
|
|
|
, lxml
|
|
|
|
, google-i18n-address
|
|
|
|
, pycountry
|
|
|
|
, html5lib
|
|
|
|
, six
|
|
|
|
, kitchen
|
|
|
|
, pypdf2
|
|
|
|
, dict2xml
|
|
|
|
, weasyprint
|
|
|
|
, pyyaml
|
|
|
|
, jinja2
|
|
|
|
, configargparse
|
|
|
|
, appdirs
|
2019-01-10 01:24:42 +00:00
|
|
|
}:
|
2018-06-18 12:15:11 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "xml2rfc";
|
2022-02-24 10:40:02 +00:00
|
|
|
version = "3.12.3";
|
2021-09-25 19:39:21 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2018-06-18 12:15:11 +00:00
|
|
|
|
2018-06-23 13:27:58 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-02-24 10:40:02 +00:00
|
|
|
sha256 = "sha256-YUrcD3Q1fkDW+nwf6k2T/aBL8+W9iWkPYW/TqdTiuA0=";
|
2018-06-18 12:15:11 +00:00
|
|
|
};
|
|
|
|
|
2019-01-10 01:24:42 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
intervaltree
|
2020-08-29 18:34:45 +00:00
|
|
|
jinja2
|
2019-01-10 01:24:42 +00:00
|
|
|
pyflakes
|
2020-08-29 18:34:45 +00:00
|
|
|
pyyaml
|
2019-01-10 01:24:42 +00:00
|
|
|
requests
|
|
|
|
lxml
|
|
|
|
google-i18n-address
|
|
|
|
pycountry
|
|
|
|
html5lib
|
|
|
|
six
|
2019-09-14 15:07:30 +00:00
|
|
|
kitchen
|
|
|
|
pypdf2
|
|
|
|
dict2xml
|
|
|
|
weasyprint
|
2021-07-20 21:26:16 +00:00
|
|
|
configargparse
|
2021-01-02 10:18:04 +00:00
|
|
|
appdirs
|
2019-01-10 01:24:42 +00:00
|
|
|
];
|
|
|
|
|
2021-09-25 19:39:21 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace requirements.txt \
|
|
|
|
--replace "jinja2>=2.11,<3.0" "jinja2>=2.11"
|
|
|
|
'';
|
|
|
|
|
2019-01-10 01:24:42 +00:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
2018-06-18 12:15:11 +00:00
|
|
|
|
2019-09-14 15:07:30 +00:00
|
|
|
# lxml tries to fetch from the internet
|
|
|
|
doCheck = false;
|
2021-09-25 19:39:21 +00:00
|
|
|
|
2021-01-02 10:18:04 +00:00
|
|
|
pythonImportsCheck = [ "xml2rfc" ];
|
2019-04-24 02:39:28 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-06-18 12:15:11 +00:00
|
|
|
description = "Tool generating IETF RFCs and drafts from XML sources";
|
2020-03-28 14:54:31 +00:00
|
|
|
homepage = "https://tools.ietf.org/tools/xml2rfc/trac/";
|
2018-06-18 12:15:11 +00:00
|
|
|
# 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;
|
2019-09-14 15:07:49 +00:00
|
|
|
maintainers = with maintainers; [ vcunat yrashk ];
|
2018-06-18 12:15:11 +00:00
|
|
|
};
|
|
|
|
}
|