nixpkgs/pkgs/development/python-modules/xml2rfc/default.nix

51 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, fetchPypi, buildPythonPackage, pythonAtLeast, intervaltree, pyflakes, requests, lxml, google-i18n-address
, pycountry, html5lib, six, kitchen, pypdf2, dict2xml, weasyprint, pyyaml, jinja2, ConfigArgParse, appdirs
}:
buildPythonPackage rec {
pname = "xml2rfc";
version = "3.5.0";
disabled = pythonAtLeast "3.9";
src = fetchPypi {
inherit pname version;
sha256 = "3ec836a9545f549707a8c8176038160185b9d08c1dd80304a906527da21bff68";
};
propagatedBuildInputs = [
intervaltree
2020-08-29 19:34:45 +01:00
jinja2
pyflakes
2020-08-29 19:34:45 +01:00
pyyaml
requests
lxml
google-i18n-address
pycountry
html5lib
six
kitchen
pypdf2
dict2xml
weasyprint
ConfigArgParse
appdirs
];
preCheck = ''
export HOME=$(mktemp -d)
'';
# lxml tries to fetch from the internet
doCheck = false;
pythonImportsCheck = [ "xml2rfc" ];
meta = with lib; {
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/";
# 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 ];
};
}