Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / flake8-docstrings / default.nix
blobc3a08f931557387f23809108c872efd85a365757
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , flake8
5 , pydocstyle
6 , pythonOlder
7 }:
9 buildPythonPackage rec {
10   pname = "flake8-docstrings";
11   version = "1.7.0";
12   format = "setuptools";
14   disabled = pythonOlder "3.7";
16   src = fetchFromGitHub {
17     owner = "PyCQA";
18     repo = pname;
19     rev = "refs/tags/${version}";
20     hash = "sha256-EafLWySeHB81HRcXiDs56lbUZzGvnT87WVqln0PoLCk=";
21   };
23   propagatedBuildInputs = [
24     flake8
25     pydocstyle
26   ];
28   # Module has no tests
29   doCheck = false;
31   pythonImportsCheck = [
32     "flake8_docstrings"
33   ];
35   meta = with lib; {
36     description = "Extension for flake8 which uses pydocstyle to check docstrings";
37     homepage = "https://github.com/pycqa/flake8-docstrings";
38     changelog = "https://github.com/PyCQA/flake8-docstrings/blob/${version}/HISTORY.rst";
39     license = licenses.mit;
40     maintainers = with maintainers; [ smaret ];
41   };