mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-21 04:13:12 +00:00
python3Packages.doc8: fix build and enable tests
This commit is contained in:
parent
ab7c7330a9
commit
2711b62a09
@ -1,39 +1,52 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
|
, chardet
|
||||||
|
, docutils
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, pbr
|
, pbr
|
||||||
, docutils
|
|
||||||
, six
|
|
||||||
, chardet
|
|
||||||
, stevedore
|
|
||||||
, restructuredtext_lint
|
|
||||||
, pygments
|
, pygments
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, restructuredtext_lint
|
||||||
|
, stevedore
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "doc8";
|
pname = "doc8";
|
||||||
version = "0.10.1";
|
version = "0.10.1";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "376e50f4e70a1ae935416ddfcf93db35dd5d4cc0e557f2ec72f0667d0ace4548";
|
sha256 = "376e50f4e70a1ae935416ddfcf93db35dd5d4cc0e557f2ec72f0667d0ace4548";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ pbr ];
|
buildInputs = [
|
||||||
|
pbr
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
docutils
|
docutils
|
||||||
six
|
|
||||||
chardet
|
chardet
|
||||||
stevedore
|
stevedore
|
||||||
restructuredtext_lint
|
restructuredtext_lint
|
||||||
pygments
|
pygments
|
||||||
];
|
];
|
||||||
|
|
||||||
doCheck = false;
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
meta = {
|
pythonImportsCheck = [
|
||||||
|
"doc8"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
description = "Style checker for Sphinx (or other) RST documentation";
|
description = "Style checker for Sphinx (or other) RST documentation";
|
||||||
homepage = "https://launchpad.net/doc8";
|
homepage = "https://github.com/pycqa/doc8";
|
||||||
license = lib.licenses.asl20;
|
license = licenses.asl20;
|
||||||
|
maintainers = with maintainers; [ ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user