1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/doc8/default.nix
Timo Kaufmann c6c0ae3be2 python.pkgs.doc8: add pygments dependency
Without pygments doc8 will throw "errors" since it cannot check code
blocks. Pygments has since been added to the dependencies upstream [1],
though that hasn't made it into a release yet. I think we should already
adopt this now.

[1] b693181658
2020-03-27 10:39:36 -07:00

40 lines
659 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pbr
, docutils
, six
, chardet
, stevedore
, restructuredtext_lint
, pygments
}:
buildPythonPackage rec {
pname = "doc8";
version = "0.8.0";
src = fetchPypi {
inherit pname version;
sha256 = "2df89f9c1a5abfb98ab55d0175fed633cae0cf45025b8b1e0ee5ea772be28543";
};
buildInputs = [ pbr ];
propagatedBuildInputs = [
docutils
six
chardet
stevedore
restructuredtext_lint
pygments
];
doCheck = false;
meta = {
description = "Style checker for Sphinx (or other) RST documentation";
homepage = "https://launchpad.net/doc8";
license = lib.licenses.asl20;
};
}