1{ lib 2, fetchPypi 3, buildPythonPackage 4, lxml 5, docopt 6, six 7, pytestCheckHook 8, mock 9, fetchpatch 10}: 11 12buildPythonPackage rec { 13 pname = "rnginline"; 14 version = "0.0.2"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "sha256-j4W4zwHA4yA6iAFVa/LDKp00eeCX3PbmWkjd2LSUGfk="; 19 }; 20 21 patches = [ 22 # Fix failing tests. Should be included in releases after 0.0.2 23 # https://github.com/h4l/rnginline/issues/3 24 (fetchpatch { 25 url = "https://github.com/h4l/rnginline/commit/b1d1c8cda2a17d46627309950f2442021749c07e.patch"; 26 sha256 = "sha256-XbisEwun2wPOp7eqW2YDVdayJ4sjAMG/ezFwgoCKe9o="; 27 name = "fix_tests_failing_collect.patch"; 28 }) 29 ]; 30 31 propagatedBuildInputs = [ 32 docopt 33 lxml 34 six 35 ]; 36 37 checkInputs = [ 38 mock 39 pytestCheckHook 40 ]; 41 42 pythonImportsCheck = [ "rnginline" ]; 43 44 meta = with lib; { 45 description = "A Python library and command-line tool for loading multi-file RELAX NG schemas from arbitary URLs, and flattening them into a single RELAX NG schema"; 46 homepage = "https://github.com/h4l/rnginline"; 47 license = licenses.asl20; 48 maintainers = with maintainers; [ lesuisse ]; 49 }; 50}