diff --git a/pkgs/development/python-modules/docstring-parser/default.nix b/pkgs/development/python-modules/docstring-parser/default.nix index 5408b11c7d8a..53a59f10ffac 100644 --- a/pkgs/development/python-modules/docstring-parser/default.nix +++ b/pkgs/development/python-modules/docstring-parser/default.nix @@ -1,25 +1,39 @@ { lib , buildPythonPackage , fetchFromGitHub -, setuptools -, setuptools-scm -, wheel -, pytest -}: buildPythonPackage rec { +, poetry-core +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { pname = "docstring-parser"; - version = "0.12"; + version = "0.14.1"; + format = "pyproject"; + + disabled = pythonOlder "3.7"; + src = fetchFromGitHub { owner = "rr-"; repo = "docstring_parser"; rev = "${version}"; - sha256 = "sha256-hQuPJQrGvDs4dJrMLSR4sSnqy45xrF2ufinBG+azuCg="; + hash = "sha256-NIijq+QR0panVCGDEQrTlkAvHfIexwS0PxFikglxd74="; }; - nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ pytest setuptools wheel ]; - SETUPTOOLS_SCM_PRETEND_VERSION = version; + + nativeBuildInputs = [ + poetry-core + ]; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "docstring_parser" + ]; meta = with lib; { - description = "Parse Python docstrings in various flavors. "; + description = "Parse Python docstrings in various flavors"; homepage = "https://github.com/rr-/docstring_parser"; license = licenses.mit; maintainers = with maintainers; [ SomeoneSerge ];