Merge pull request #171891 from SuperSandro2000/m2r

python310Packages.m2r: adopt, run tests

authored by Sandro and committed by GitHub 2ccd6215 938dddf9

+16 -7
+16 -7
pkgs/development/python-modules/m2r/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi, 2 - mistune, docutils } : 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , docutils 5 + , mistune 6 + , pygments 7 + }: 8 + 3 9 buildPythonPackage rec { 4 10 pname = "m2r"; 5 11 version = "0.2.1"; ··· 9 15 sha256 = "bf90bad66cda1164b17e5ba4a037806d2443f2a4d5ddc9f6a5554a0322aaed99"; 10 16 }; 11 17 18 + postPatch = '' 19 + substituteInPlace tests/test_cli.py \ 20 + --replace "optional" "positional" 21 + ''; 22 + 12 23 propagatedBuildInputs = [ mistune docutils ]; 13 24 14 - # Some tests interfeere with each other (test.md and test.rst are 15 - # deleted by some tests and not properly regenerated) 16 - doCheck = false; 25 + checkInputs = [ pygments ]; 17 26 18 27 meta = with lib; { 19 28 homepage = "https://github.com/miyakogi/m2r"; 20 - description = "converts a markdown file including reST markups to a valid reST format"; 29 + description = "Markdown to reStructuredText converter"; 21 30 license = licenses.mit; 22 - maintainers = [ ]; 31 + maintainers = with maintainers; [ SuperSandro2000 ]; 23 32 }; 24 33 }