summaryrefslogtreecommitdiffstats
path: root/pkgs/development/octave-modules/doctest/default.nix
blob: aa7a53ac26d34499f49bccf1b1d09acdf9914b30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
  buildOctavePackage,
  lib,
  fetchurl,
}:

buildOctavePackage rec {
  pname = "doctest";
  version = "0.8.1";

  src = fetchurl {
    url = "mirror://sourceforge/octave/${pname}-${version}.tar.gz";
    sha256 = "sha256-dmZpgnz2vNd1AmDKhpNTZW1UEvBNUUv+rRn3VsnSeuk=";
  };

  meta = {
    homepage = "https://gnu-octave.github.io/packages/doctest/";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ ravenjoad ];
    description = "Find and run example code within documentation";
    longDescription = ''
      Find and run example code within documentation. Formatted blocks
      of example code are extracted from documentation files and executed
      to confirm their output is correct. This can be part of a testing
      framework or simply to ensure that documentation stays up-to-date
      during software development.
    '';
  };
}