From c14c90f46179a879a1d4bb3211add3403afeefd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Maret?= Date: Thu, 13 Jan 2022 15:48:28 +0100 Subject: [PATCH] python3Packages.flake8-docstrings: init at 1.6.0 --- .../flake8-docstrings/default.nix | 27 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/development/python-modules/flake8-docstrings/default.nix diff --git a/pkgs/development/python-modules/flake8-docstrings/default.nix b/pkgs/development/python-modules/flake8-docstrings/default.nix new file mode 100644 index 000000000000..a02d900a7f07 --- /dev/null +++ b/pkgs/development/python-modules/flake8-docstrings/default.nix @@ -0,0 +1,27 @@ +{ lib +, buildPythonPackage +, fetchPypi +, flake8 +, pydocstyle +}: + +buildPythonPackage rec { + pname = "flake8-docstrings"; + version = "1.6.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "9fe7c6a306064af8e62a055c2f61e9eb1da55f84bb39caef2b84ce53708ac34b"; + }; + + propagatedBuildInputs = [ flake8 pydocstyle ]; + + pythonImportsCheck = [ "flake8_docstrings" ]; + + meta = with lib; { + description = "Extension for flake8 which uses pydocstyle to check docstrings"; + homepage = "https://gitlab.com/pycqa/flake8-docstrings"; + license = licenses.mit; + maintainers = with maintainers; [ smaret ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5ce13114b785..a9429095bc8c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2843,6 +2843,8 @@ in { flake8-debugger = callPackage ../development/python-modules/flake8-debugger { }; + flake8-docstrings = callPackage ../development/python-modules/flake8-docstrings { }; + flake8-future-import = callPackage ../development/python-modules/flake8-future-import { }; flake8-import-order = callPackage ../development/python-modules/flake8-import-order { };