Merge pull request #172083 from SuperSandro2000/m2r

python310Packages.m2r: adopt, run tests
main
Sandro 2 years ago committed by GitHub
commit dc1e93aba3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 23
      pkgs/development/python-modules/m2r/default.nix

@ -1,5 +1,11 @@
{ lib, buildPythonPackage, fetchPypi, { lib
mistune, docutils } : , buildPythonPackage
, fetchPypi
, docutils
, mistune
, pygments
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "m2r"; pname = "m2r";
version = "0.2.1"; version = "0.2.1";
@ -9,16 +15,19 @@ buildPythonPackage rec {
sha256 = "bf90bad66cda1164b17e5ba4a037806d2443f2a4d5ddc9f6a5554a0322aaed99"; sha256 = "bf90bad66cda1164b17e5ba4a037806d2443f2a4d5ddc9f6a5554a0322aaed99";
}; };
postPatch = ''
substituteInPlace tests/test_cli.py \
--replace "optional" "positional"
'';
propagatedBuildInputs = [ mistune docutils ]; propagatedBuildInputs = [ mistune docutils ];
# Some tests interfeere with each other (test.md and test.rst are checkInputs = [ pygments ];
# deleted by some tests and not properly regenerated)
doCheck = false;
meta = with lib; { meta = with lib; {
homepage = "https://github.com/miyakogi/m2r"; homepage = "https://github.com/miyakogi/m2r";
description = "converts a markdown file including reST markups to a valid reST format"; description = "Markdown to reStructuredText converter";
license = licenses.mit; license = licenses.mit;
maintainers = [ ]; maintainers = with maintainers; [ SuperSandro2000 ];
}; };
} }

Loading…
Cancel
Save