nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

python310Packages.rnginline: Enable more tests

+34 -12
+34 -12
pkgs/development/python-modules/rnginline/default.nix
··· 1 - { lib, fetchPypi, buildPythonPackage, lxml, docopt, six, pytestCheckHook, mock }: 1 + { lib 2 + , fetchPypi 3 + , buildPythonPackage 4 + , lxml 5 + , docopt 6 + , six 7 + , pytestCheckHook 8 + , mock 9 + , fetchpatch 10 + }: 2 11 3 12 buildPythonPackage rec { 4 13 pname = "rnginline"; ··· 18 9 sha256 = "sha256-j4W4zwHA4yA6iAFVa/LDKp00eeCX3PbmWkjd2LSUGfk="; 19 10 }; 20 11 21 - propagatedBuildInputs = [ lxml docopt six ]; 22 - 23 - checkInputs = [ pytestCheckHook mock ]; 24 - 25 - # Those tests does not succeed, a test dependency is likely missing but nothing is specified upstream 26 - disabledTestPaths = [ 27 - "rnginline/test/test_cmdline.py" 28 - "rnginline/test/test_rnginline.py" 12 + patches = [ 13 + # Fix failing tests. Should be included in releases after 0.0.2 14 + # https://github.com/h4l/rnginline/issues/3 15 + (fetchpatch { 16 + url = "https://github.com/h4l/rnginline/commit/b1d1c8cda2a17d46627309950f2442021749c07e.patch"; 17 + sha256 = "sha256-XbisEwun2wPOp7eqW2YDVdayJ4sjAMG/ezFwgoCKe9o="; 18 + name = "fix_tests_failing_collect.patch"; 19 + }) 29 20 ]; 30 21 31 - meta = { 22 + propagatedBuildInputs = [ 23 + docopt 24 + lxml 25 + six 26 + ]; 27 + 28 + checkInputs = [ 29 + mock 30 + pytestCheckHook 31 + ]; 32 + 33 + pythonImportsCheck = [ "rnginline" ]; 34 + 35 + meta = with lib; { 32 36 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"; 33 37 homepage = "https://github.com/h4l/rnginline"; 34 - license = lib.licenses.asl20; 35 - maintainers = [ lib.maintainers.lesuisse ]; 38 + license = licenses.asl20; 39 + maintainers = with maintainers; [ lesuisse ]; 36 40 }; 37 41 }