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