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

51 lines
1.3 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchPypi, buildPythonPackage, pythonAtLeast, intervaltree, pyflakes, requests, lxml, google-i18n-address
2021-01-02 11:18:04 +01:00
, pycountry, html5lib, six, kitchen, pypdf2, dict2xml, weasyprint, pyyaml, jinja2, ConfigArgParse, appdirs
2019-01-10 02:24:42 +01:00
}:
2018-06-18 14:15:11 +02:00
buildPythonPackage rec {
pname = "xml2rfc";
2020-11-29 15:04:46 +01:00
version = "3.5.0";
2021-01-02 11:18:04 +01:00
disabled = pythonAtLeast "3.9";
2018-06-18 14:15:11 +02:00
2018-06-23 15:27:58 +02:00
src = fetchPypi {
inherit pname version;
2020-11-29 15:04:46 +01:00
sha256 = "3ec836a9545f549707a8c8176038160185b9d08c1dd80304a906527da21bff68";
2018-06-18 14:15:11 +02:00
};
2019-01-10 02:24:42 +01:00
propagatedBuildInputs = [
intervaltree
2020-08-29 11:34:45 -07:00
jinja2
2019-01-10 02:24:42 +01:00
pyflakes
2020-08-29 11:34:45 -07:00
pyyaml
2019-01-10 02:24:42 +01:00
requests
lxml
google-i18n-address
pycountry
html5lib
six
2019-09-14 17:07:30 +02:00
kitchen
pypdf2
dict2xml
weasyprint
2021-01-02 11:18:04 +01:00
ConfigArgParse
appdirs
2019-01-10 02:24:42 +01:00
];
preCheck = ''
export HOME=$(mktemp -d)
'';
2018-06-18 14:15:11 +02:00
2019-09-14 17:07:30 +02:00
# lxml tries to fetch from the internet
doCheck = false;
2021-01-02 11:18:04 +01:00
pythonImportsCheck = [ "xml2rfc" ];
2019-04-23 22:39:28 -04:00
meta = with lib; {
2018-06-18 14:15:11 +02:00
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/";
2018-06-18 14:15:11 +02:00
# 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 17:07:49 +02:00
maintainers = with maintainers; [ vcunat yrashk ];
2018-06-18 14:15:11 +02:00
};
}