diff options
Diffstat (limited to 'pkgs/development/python-modules/doc8/default.nix')
-rw-r--r-- | pkgs/development/python-modules/doc8/default.nix | 55 |
1 files changed, 21 insertions, 34 deletions
diff --git a/pkgs/development/python-modules/doc8/default.nix b/pkgs/development/python-modules/doc8/default.nix index 48c00b0d5cc3..566a60d47f2e 100644 --- a/pkgs/development/python-modules/doc8/default.nix +++ b/pkgs/development/python-modules/doc8/default.nix @@ -1,48 +1,37 @@ -{ lib -, buildPythonPackage -, chardet -, docutils -, fetchpatch -, fetchPypi -, pbr -, pygments -, pytestCheckHook -, pythonOlder -, restructuredtext-lint -, setuptools-scm -, stevedore -, wheel +{ + lib, + buildPythonPackage, + chardet, + docutils, + fetchPypi, + pbr, + pygments, + pytestCheckHook, + pythonOlder, + restructuredtext-lint, + setuptools-scm, + stevedore, + wheel, }: buildPythonPackage rec { pname = "doc8"; - version = "1.1.1"; + version = "1.1.2"; format = "pyproject"; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - hash = "sha256-2XqT6PWi78RxOggEZX3trYN0XMpM0diN6Rhvd/l3YAQ="; + hash = "sha256-EiXzAUThzJfjiNuvf+PpltKJdHOlOm2uJo3d4hw1S5g="; }; - 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="; - }) - ]; - nativeBuildInputs = [ setuptools-scm wheel ]; - buildInputs = [ - pbr - ]; + buildInputs = [ pbr ]; propagatedBuildInputs = [ docutils @@ -52,13 +41,11 @@ buildPythonPackage rec { pygments ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "doc8" - ]; + pythonRelaxDeps = [ "docutils" ]; + + pythonImportsCheck = [ "doc8" ]; meta = with lib; { description = "Style checker for Sphinx (or other) RST documentation"; |