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.16"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "rr-"; 19 repo = "docstring_parser"; 20 tag = version; 21 hash = "sha256-xwV+mgCOC/MyCqGELkJVqQ3p2g2yw/Ieomc7k0HMXms="; 22 }; 23 24 build-system = [ 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}