1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 pytestCheckHook,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "docstring-parser";
12 version = "0.15";
13 format = "pyproject";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "rr-";
19 repo = "docstring_parser";
20 rev = "refs/tags/${version}";
21 hash = "sha256-rnDitZn/xI0I9KMQv6gxzVYevWUymDgyFETjAnRlEHw=";
22 };
23
24 nativeBuildInputs = [ poetry-core ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "docstring_parser" ];
29
30 meta = with lib; {
31 description = "Parse Python docstrings in various flavors";
32 homepage = "https://github.com/rr-/docstring_parser";
33 changelog = "https://github.com/rr-/docstring_parser/blob/${version}/CHANGELOG.md";
34 license = licenses.mit;
35 maintainers = with maintainers; [ SomeoneSerge ];
36 };
37}