2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-12-26 17:43:05 +00:00
|
|
|
, chardet
|
|
|
|
, docutils
|
2023-08-22 20:05:09 +00:00
|
|
|
, fetchpatch
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchPypi
|
|
|
|
, pbr
|
|
|
|
, pygments
|
2021-12-26 17:43:05 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2023-11-16 04:20:00 +00:00
|
|
|
, restructuredtext-lint
|
2022-02-10 20:34:41 +00:00
|
|
|
, setuptools-scm
|
2021-12-26 17:43:05 +00:00
|
|
|
, stevedore
|
2023-08-22 20:05:09 +00:00
|
|
|
, wheel
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "doc8";
|
2022-12-28 21:21:41 +00:00
|
|
|
version = "1.1.1";
|
2021-12-26 17:43:05 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-12-28 21:21:41 +00:00
|
|
|
hash = "sha256-2XqT6PWi78RxOggEZX3trYN0XMpM0diN6Rhvd/l3YAQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
patches = [
|
|
|
|
# https://github.com/PyCQA/doc8/pull/146
|
|
|
|
(fetchpatch {
|
|
|
|
name = "remove-setuptools-scm-git-archive.patch";
|
|
|
|
url = "https://github.com/PyCQA/doc8/commit/06416e95041db92e4295b13ab596351618f6b32e.patch";
|
|
|
|
hash = "sha256-IIE3cDNOx+6RLjidGrokyazaX7MOVbMKUb7yQIM5sI0=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
2023-08-22 20:05:09 +00:00
|
|
|
wheel
|
2022-02-10 20:34:41 +00:00
|
|
|
];
|
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
buildInputs = [
|
|
|
|
pbr
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
docutils
|
|
|
|
chardet
|
|
|
|
stevedore
|
2023-11-16 04:20:00 +00:00
|
|
|
restructuredtext-lint
|
2020-04-24 23:36:52 +00:00
|
|
|
pygments
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-12-26 17:43:05 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"doc8"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Style checker for Sphinx (or other) RST documentation";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "doc8";
|
2021-12-26 17:43:05 +00:00
|
|
|
homepage = "https://github.com/pycqa/doc8";
|
2022-12-28 21:21:41 +00:00
|
|
|
changelog = "https://github.com/PyCQA/doc8/releases/tag/v${version}";
|
2021-12-26 17:43:05 +00:00
|
|
|
license = licenses.asl20;
|
2022-09-09 14:08:57 +00:00
|
|
|
maintainers = with maintainers; [ onny ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|