diff --git a/pkgs/development/python-modules/doc8/default.nix b/pkgs/development/python-modules/doc8/default.nix index 5abb1f6d2ab0..8c687f583ad6 100644 --- a/pkgs/development/python-modules/doc8/default.nix +++ b/pkgs/development/python-modules/doc8/default.nix @@ -2,6 +2,7 @@ , buildPythonPackage , chardet , docutils +, fetchpatch , fetchPypi , pbr , pygments @@ -10,6 +11,7 @@ , restructuredtext_lint , setuptools-scm , stevedore +, wheel }: buildPythonPackage rec { @@ -24,8 +26,18 @@ buildPythonPackage rec { hash = "sha256-2XqT6PWi78RxOggEZX3trYN0XMpM0diN6Rhvd/l3YAQ="; }; + 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 = [