2021-11-26 18:54:45 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, isPy3k
|
|
|
|
, fetchFromGitHub
|
2019-11-21 23:48:27 +00:00
|
|
|
, snowballstemmer
|
2021-11-26 18:54:45 +00:00
|
|
|
, pytestCheckHook
|
2019-11-21 23:48:27 +00:00
|
|
|
}:
|
2018-01-19 16:22:37 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pydocstyle";
|
2021-11-26 18:54:45 +00:00
|
|
|
version = "6.1.1";
|
2019-11-21 23:48:27 +00:00
|
|
|
disabled = !isPy3k;
|
2018-01-19 16:22:37 +00:00
|
|
|
|
2021-11-26 18:54:45 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2018-03-01 10:13:09 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PyCQA";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-11-26 18:54:45 +00:00
|
|
|
sha256 = "sha256-j0WMD2qKDdMaKG2FxrrM/O7zX4waJ1afaRPRv70djkE=";
|
2018-01-19 16:22:37 +00:00
|
|
|
};
|
|
|
|
|
2021-11-26 18:54:45 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
snowballstemmer
|
|
|
|
];
|
2018-01-19 16:22:37 +00:00
|
|
|
|
2021-11-26 18:54:45 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2018-01-19 16:22:37 +00:00
|
|
|
|
2021-11-26 18:54:45 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
"src/tests/test_integration.py" # runs pip install
|
|
|
|
];
|
2018-03-01 10:13:09 +00:00
|
|
|
|
2018-03-01 10:03:17 +00:00
|
|
|
meta = with lib; {
|
2018-01-19 16:22:37 +00:00
|
|
|
description = "Python docstring style checker";
|
2021-11-26 18:54:45 +00:00
|
|
|
homepage = "https://github.com/PyCQA/pydocstyle";
|
2018-01-19 16:22:37 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dzabraev ];
|
|
|
|
};
|
|
|
|
}
|