1{ lib, fetchPypi, buildPythonPackage, intervaltree, pyflakes, requests, lxml, google-i18n-address
2, pycountry, html5lib, six, kitchen, pypdf2, dict2xml, weasyprint
3, stdenv
4}:
5
6buildPythonPackage rec {
7 pname = "xml2rfc";
8 version = "2.37.3";
9
10 src = fetchPypi {
11 inherit pname version;
12 sha256 = "4ae4e99a4b482caac89d8ffd93d16a4510db36907475b1879713a1dc885646ad";
13 };
14
15 propagatedBuildInputs = [
16 intervaltree
17 pyflakes
18 requests
19 lxml
20 google-i18n-address
21 pycountry
22 html5lib
23 six
24 kitchen
25 pypdf2
26 dict2xml
27 weasyprint
28 ];
29
30 preCheck = ''
31 export HOME=$(mktemp -d)
32 '';
33
34 # lxml tries to fetch from the internet
35 doCheck = false;
36
37 meta = with lib; {
38 description = "Tool generating IETF RFCs and drafts from XML sources";
39 homepage = https://tools.ietf.org/tools/xml2rfc/trac/;
40 # Well, parts might be considered unfree, if being strict; see:
41 # http://metadata.ftp-master.debian.org/changelogs/non-free/x/xml2rfc/xml2rfc_2.9.6-1_copyright
42 license = licenses.bsd3;
43 maintainers = with maintainers; [ vcunat yrashk ];
44 };
45}