2019-01-10 01:24:42 +00:00
|
|
|
{ lib, fetchPypi, buildPythonPackage, intervaltree, pyflakes, requests, lxml, google-i18n-address
|
2019-09-14 16:07:30 +01:00
|
|
|
, pycountry, html5lib, six, kitchen, pypdf2, dict2xml, weasyprint
|
2019-04-24 03:39:28 +01:00
|
|
|
, stdenv
|
2019-01-10 01:24:42 +00:00
|
|
|
}:
|
2018-06-18 13:15:11 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "xml2rfc";
|
2019-11-29 23:24:04 +00:00
|
|
|
version = "2.35.0";
|
2018-06-18 13:15:11 +01:00
|
|
|
|
2018-06-23 14:27:58 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-11-29 23:24:04 +00:00
|
|
|
sha256 = "0jpg9rxxw28n66wzznlhzdgv7b7gd1crcffjhlw7lam93ils4ah5";
|
2018-06-18 13:15:11 +01:00
|
|
|
};
|
|
|
|
|
2019-01-10 01:24:42 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
intervaltree
|
|
|
|
pyflakes
|
|
|
|
requests
|
|
|
|
lxml
|
|
|
|
google-i18n-address
|
|
|
|
pycountry
|
|
|
|
html5lib
|
|
|
|
six
|
2019-09-14 16:07:30 +01:00
|
|
|
kitchen
|
|
|
|
pypdf2
|
|
|
|
dict2xml
|
|
|
|
weasyprint
|
2019-01-10 01:24:42 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
2018-06-18 13:15:11 +01:00
|
|
|
|
2019-09-14 16:07:30 +01:00
|
|
|
# lxml tries to fetch from the internet
|
|
|
|
doCheck = false;
|
2019-04-24 03:39:28 +01:00
|
|
|
|
2018-06-18 13:15:11 +01:00
|
|
|
meta = with lib; {
|
|
|
|
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;
|
2019-09-14 16:07:49 +01:00
|
|
|
maintainers = with maintainers; [ vcunat yrashk ];
|
2018-06-18 13:15:11 +01:00
|
|
|
};
|
|
|
|
}
|