Files
nixpkgs/pkgs/development/python-modules/flake8-docstrings/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

42 lines
889 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
flake8,
pydocstyle,
pythonOlder,
}:
buildPythonPackage rec {
pname = "flake8-docstrings";
version = "1.7.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "PyCQA";
repo = "flake8-docstrings";
tag = version;
hash = "sha256-EafLWySeHB81HRcXiDs56lbUZzGvnT87WVqln0PoLCk=";
};
propagatedBuildInputs = [
flake8
pydocstyle
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [ "flake8_docstrings" ];
meta = {
description = "Extension for flake8 which uses pydocstyle to check docstrings";
homepage = "https://github.com/pycqa/flake8-docstrings";
changelog = "https://github.com/PyCQA/flake8-docstrings/blob/${version}/HISTORY.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ smaret ];
};
}