mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
Revert "python310Packages.m2r: adopt, run tests"
This commit is contained in:
parent
2ccd621515
commit
d9361ea36c
@ -1,11 +1,5 @@
|
|||||||
{ lib
|
{ lib, buildPythonPackage, fetchPypi,
|
||||||
, buildPythonPackage
|
mistune, docutils } :
|
||||||
, fetchPypi
|
|
||||||
, docutils
|
|
||||||
, mistune
|
|
||||||
, pygments
|
|
||||||
}:
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "m2r";
|
pname = "m2r";
|
||||||
version = "0.2.1";
|
version = "0.2.1";
|
||||||
@ -15,19 +9,16 @@ buildPythonPackage rec {
|
|||||||
sha256 = "bf90bad66cda1164b17e5ba4a037806d2443f2a4d5ddc9f6a5554a0322aaed99";
|
sha256 = "bf90bad66cda1164b17e5ba4a037806d2443f2a4d5ddc9f6a5554a0322aaed99";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace tests/test_cli.py \
|
|
||||||
--replace "optional" "positional"
|
|
||||||
'';
|
|
||||||
|
|
||||||
propagatedBuildInputs = [ mistune docutils ];
|
propagatedBuildInputs = [ mistune docutils ];
|
||||||
|
|
||||||
checkInputs = [ pygments ];
|
# Some tests interfeere with each other (test.md and test.rst are
|
||||||
|
# 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 = "Markdown to reStructuredText converter";
|
description = "converts a markdown file including reST markups to a valid reST format";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ SuperSandro2000 ];
|
maintainers = [ ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user