1{ lib, buildPythonPackage, fetchFromGitHub, isPy3k
2, mock
3, pytest
4, snowballstemmer
5}:
6
7buildPythonPackage rec {
8 pname = "pydocstyle";
9 version = "5.0.2";
10 disabled = !isPy3k;
11
12 src = fetchFromGitHub {
13 owner = "PyCQA";
14 repo = pname;
15 rev = version;
16 sha256 = "03z8miyppm2xncrc9yjilwl7z5c5cpv51zha580v64p8sb2l0j7j";
17 };
18
19 propagatedBuildInputs = [ snowballstemmer ];
20
21 checkInputs = [ pytest mock ];
22
23 checkPhase = ''
24 # test_integration.py installs packages via pip
25 py.test --cache-clear -vv src/tests -k "not test_integration"
26 '';
27
28 meta = with lib; {
29 description = "Python docstring style checker";
30 homepage = "https://github.com/PyCQA/pydocstyle/";
31 license = licenses.mit;
32 maintainers = with maintainers; [ dzabraev ];
33 };
34}