nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 33 lines 682 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, docutils 5, mistune 6, pygments 7}: 8 9buildPythonPackage rec { 10 pname = "m2r"; 11 version = "0.2.1"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "bf90bad66cda1164b17e5ba4a037806d2443f2a4d5ddc9f6a5554a0322aaed99"; 16 }; 17 18 postPatch = '' 19 substituteInPlace tests/test_cli.py \ 20 --replace "optional" "positional" 21 ''; 22 23 propagatedBuildInputs = [ mistune docutils ]; 24 25 checkInputs = [ pygments ]; 26 27 meta = with lib; { 28 homepage = "https://github.com/miyakogi/m2r"; 29 description = "Markdown to reStructuredText converter"; 30 license = licenses.mit; 31 maintainers = with maintainers; [ SuperSandro2000 ]; 32 }; 33}