2019-11-21 23:48:27 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k
|
|
|
|
, mock
|
|
|
|
, pytest
|
|
|
|
, pytestpep8
|
|
|
|
, snowballstemmer
|
|
|
|
}:
|
2018-01-19 16:22:37 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pydocstyle";
|
2020-05-09 10:33:10 +01:00
|
|
|
version = "5.0.2";
|
2019-11-21 23:48:27 +00:00
|
|
|
disabled = !isPy3k;
|
2018-01-19 16:22:37 +00:00
|
|
|
|
2018-03-01 10:13:09 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PyCQA";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-05-09 10:33:10 +01:00
|
|
|
sha256 = "03z8miyppm2xncrc9yjilwl7z5c5cpv51zha580v64p8sb2l0j7j";
|
2018-01-19 16:22:37 +00:00
|
|
|
};
|
|
|
|
|
2019-11-21 23:48:27 +00:00
|
|
|
propagatedBuildInputs = [ snowballstemmer ];
|
2018-01-19 16:22:37 +00:00
|
|
|
|
2019-11-21 23:48:27 +00:00
|
|
|
checkInputs = [ pytest pytestpep8 mock ];
|
2018-01-19 16:22:37 +00:00
|
|
|
|
2018-03-01 10:13:09 +00:00
|
|
|
checkPhase = ''
|
|
|
|
# test_integration.py installs packages via pip
|
|
|
|
py.test --pep8 --cache-clear -vv src/tests -k "not test_integration"
|
|
|
|
'';
|
|
|
|
|
2018-03-01 10:03:17 +00:00
|
|
|
meta = with lib; {
|
2018-01-19 16:22:37 +00:00
|
|
|
description = "Python docstring style checker";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/PyCQA/pydocstyle/";
|
2018-01-19 16:22:37 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dzabraev ];
|
|
|
|
};
|
|
|
|
}
|