3
0
Fork 0
forked from mirrors/nixpkgs

mdcat: 0.14.0 -> 0.15.0

This commit is contained in:
David Wood 2020-01-14 11:12:48 +00:00 committed by Matthieu Coudron
parent 05a965896d
commit cfc2ead8b3

View file

@ -2,26 +2,28 @@
rustPlatform.buildRustPackage rec {
pname = "mdcat";
version = "0.14.0";
version = "0.15.0";
src = fetchFromGitHub {
owner = "lunaryorn";
repo = pname;
rev = "mdcat-${version}";
sha256 = "1q8h6pc1i89j1zl4s234inl9v95vsdrry1fzlis89sl2mnbv8ywy";
sha256 = "1x9c3cj3y8wvwr74kbz6nrdh61rinr98gcp3hnjpi6c3vg3xx4wh";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ openssl ] ++ stdenv.lib.optional stdenv.isDarwin Security;
cargoSha256 = "1hxsfls6fpllc9yg5ib3qz6pa62j1y1va8a6356j6812csk4ifnn";
cargoSha256 = "1kc434pa72n9xll2r4ddmd9xdwv3ls36cwsmdry392j41zmics51";
checkInputs = [ ansi2html ];
checkPhase = ''
# Skip tests that use the network and that include files.
cargo test -- --skip terminal::iterm2 --skip terminal::resources::tests::remote \
cargo test -- --skip terminal::iterm2 \
--skip magic::tests::detect_mimetype_of_svg_image \
--skip magic::tests::detect_mimetype_of_png_image
--skip magic::tests::detect_mimetype_of_png_image \
--skip resources::tests::read_url_with_http_url_fails_when_status_404 \
--skip resources::tests::read_url_with_http_url_returns_content_when_status_200
'';
meta = with stdenv.lib; {