1 { lib, buildPythonPackage, fetchFromGitHub, isPy3k, pythonOlder
2 , snowballstemmer, six, configparser
3 , pytest, mock, pathlib }:
5 buildPythonPackage rec {
10 # https://github.com/PyCQA/pydocstyle/issues/302
11 src = fetchFromGitHub {
15 sha256 = "1h0k8lpx14svc8dini62j0kqiam10pck5sdzvxa4xhsx7y689g5l";
18 propagatedBuildInputs = [ snowballstemmer six ] ++ lib.optional (!isPy3k) configparser;
20 checkInputs = [ pytest mock ] ++ lib.optional (pythonOlder "3.4") pathlib;
23 # test_integration.py installs packages via pip
24 py.test --cache-clear -vv src/tests -k "not test_integration"
28 description = "Python docstring style checker";
29 homepage = "https://github.com/PyCQA/pydocstyle/";
30 license = licenses.mit;
31 maintainers = with maintainers; [ dzabraev ];