2021-12-19 05:59:15 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
2021-12-19 05:26:11 +02:00
|
|
|
fetchFromGitHub,
|
2022-04-28 00:02:28 +02:00
|
|
|
poetry-core,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-12-19 05:26:11 +02:00
|
|
|
pname = "docstring-parser";
|
2024-10-29 23:19:57 +01:00
|
|
|
version = "0.16";
|
2024-11-23 09:30:22 +01:00
|
|
|
pyproject = true;
|
2022-04-28 00:02:28 +02:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2021-12-19 05:26:11 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rr-";
|
|
|
|
repo = "docstring_parser";
|
2025-01-03 21:24:13 +01:00
|
|
|
tag = version;
|
2024-10-29 23:19:57 +01:00
|
|
|
hash = "sha256-xwV+mgCOC/MyCqGELkJVqQ3p2g2yw/Ieomc7k0HMXms=";
|
2021-12-19 05:26:11 +02:00
|
|
|
};
|
2022-04-28 00:02:28 +02:00
|
|
|
|
2024-11-23 09:30:22 +01:00
|
|
|
build-system = [ poetry-core ];
|
2022-04-28 00:02:28 +02:00
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-04-28 00:02:28 +02:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "docstring_parser" ];
|
2021-12-19 05:26:11 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-04-28 00:02:28 +02:00
|
|
|
description = "Parse Python docstrings in various flavors";
|
2021-12-19 05:26:11 +02:00
|
|
|
homepage = "https://github.com/rr-/docstring_parser";
|
2023-04-30 23:38:12 +02:00
|
|
|
changelog = "https://github.com/rr-/docstring_parser/blob/${version}/CHANGELOG.md";
|
2021-12-19 05:26:11 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ SomeoneSerge ];
|
|
|
|
};
|
|
|
|
}
|