2019-01-10 02:24:42 +01:00
|
|
|
{ lib, fetchPypi, buildPythonPackage, intervaltree, pyflakes, requests, lxml, google-i18n-address
|
|
|
|
, pycountry, html5lib, six
|
2019-04-24 04:39:28 +02:00
|
|
|
, stdenv
|
2019-01-10 02:24:42 +01:00
|
|
|
}:
|
2018-06-18 14:15:11 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "xml2rfc";
|
2019-02-14 08:37:33 +01:00
|
|
|
version = "2.18.0";
|
2018-06-18 14:15:11 +02:00
|
|
|
|
2018-06-23 15:27:58 +02:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-14 08:37:33 +01:00
|
|
|
sha256 = "e192236798615f34479a9bb9f30df72ce0e5f319df75ecc0473d896713a17451";
|
2018-06-18 14:15:11 +02:00
|
|
|
};
|
|
|
|
|
2019-01-10 02:24:42 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
intervaltree
|
|
|
|
pyflakes
|
|
|
|
requests
|
|
|
|
lxml
|
|
|
|
google-i18n-address
|
|
|
|
pycountry
|
|
|
|
html5lib
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
2018-06-18 14:15:11 +02:00
|
|
|
|
2019-04-24 04:39:28 +02:00
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
|
2018-06-18 14:15:11 +02: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;
|
|
|
|
maintainers = [ maintainers.vcunat ];
|
|
|
|
};
|
|
|
|
}
|