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