mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-16 18:03:59 +00:00
python3Packages.pydocstyle: 6.1.1 -> 6.3.0
https://github.com/PyCQA/pydocstyle/blob/6.3.0/docs/release_notes.rst
This commit is contained in:
parent
5234923423
commit
574d3aa436
@ -1,32 +1,49 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, isPy3k
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, poetry-core
|
||||
, snowballstemmer
|
||||
, tomli
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pydocstyle";
|
||||
version = "6.1.1";
|
||||
disabled = !isPy3k;
|
||||
version = "6.3.0";
|
||||
format = "pyproject";
|
||||
|
||||
format = "setuptools";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "PyCQA";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-j0WMD2qKDdMaKG2FxrrM/O7zX4waJ1afaRPRv70djkE=";
|
||||
repo = "pydocstyle";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-MjRrnWu18f75OjsYIlOLJK437X3eXnlW8WkkX7vdS6k=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace 'version = "0.0.0-dev"' 'version = "${version}"'
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
snowballstemmer
|
||||
] ++ lib.optionals (pythonOlder "3.11") [
|
||||
tomli
|
||||
];
|
||||
|
||||
passthru.optional-dependencies.toml = [
|
||||
tomli
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
] ++ passthru.optional-dependencies.toml;
|
||||
|
||||
disabledTestPaths = [
|
||||
"src/tests/test_integration.py" # runs pip install
|
||||
@ -35,6 +52,7 @@ buildPythonPackage rec {
|
||||
meta = with lib; {
|
||||
description = "Python docstring style checker";
|
||||
homepage = "https://github.com/PyCQA/pydocstyle";
|
||||
changelog = "https://github.com/PyCQA/pydocstyle/blob/${version}/docs/release_notes.rst";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ dzabraev ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user