@@ -1,11 +1,11 @@
1−{ lib, fetchPypi, buildPythonPackage, intervaltree, pyflakes, requests, lxml, google-i18n-address
2−, pycountry, html5lib, six, kitchen, pypdf2, dict2xml, weasyprint, pyyaml, jinja2
3−, stdenv
1+{ stdenv, fetchPypi, buildPythonPackage, pythonAtLeast, intervaltree, pyflakes, requests, lxml, google-i18n-address
2+, pycountry, html5lib, six, kitchen, pypdf2, dict2xml, weasyprint, pyyaml, jinja2, ConfigArgParse, appdirs
43}:
54
65buildPythonPackage rec {
76 pname = "xml2rfc";
87 version = "3.5.0";
8+ disabled = pythonAtLeast "3.9";
99
1010 src = fetchPypi {
1111 inherit pname version;
@@ -27,6 +27,8 @@ buildPythonPackage rec {
2727 pypdf2
2828 dict2xml
2929 weasyprint
30+ ConfigArgParse
31+ appdirs
3032 ];
3133
3234 preCheck = ''
@@ -35,8 +37,9 @@ buildPythonPackage rec {
3537
3638 # lxml tries to fetch from the internet
3739 doCheck = false;
40+ pythonImportsCheck = [ "xml2rfc" ];
3841
39− meta = with lib; {
42+ meta = with stdenv.lib; {
4043 description = "Tool generating IETF RFCs and drafts from XML sources";
4144 homepage = "https://tools.ietf.org/tools/xml2rfc/trac/";
4245 # Well, parts might be considered unfree, if being strict; see: